set a minimum size of 0,0 when an applet is moved in the panel, it still
can happen that it exits from top of the screen but at least it won't totally destroy the panel layout anymore svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=820917
This commit is contained in:
parent
6f8f218633
commit
b5855d7b20
@ -762,6 +762,11 @@ void Applet::flushPendingConstraintsEvents()
|
||||
} else if(d->backgroundHints&TranslucentBackground) {
|
||||
setBackgroundHints(d->backgroundHints^TranslucentBackground);
|
||||
}
|
||||
|
||||
//ensure the applet won't break the panel layout
|
||||
if ((f == Horizontal || f == Vertical) && !isContainment()) {
|
||||
setMinimumSize(QSizeF(0,0));
|
||||
}
|
||||
}
|
||||
|
||||
//enforce square size in panels
|
||||
|
Loading…
x
Reference in New Issue
Block a user