resize the extender applet to a sane size when created
svn path=/trunk/KDE/kdelibs/; revision=899905
This commit is contained in:
parent
acc4171b16
commit
3ada99112f
@ -756,6 +756,11 @@ void ExtenderItem::mouseReleaseEvent(QGraphicsSceneMouseEvent *event)
|
||||
|
||||
if (applet) {
|
||||
setExtender(applet->d->extender);
|
||||
QSizeF margin = applet->size() - applet->contentsRect().size();
|
||||
applet->setMinimumSize(minimumSize() + margin);
|
||||
applet->setPreferredSize(preferredSize() + margin);
|
||||
applet->resize(preferredSize());
|
||||
|
||||
extenderCreated = true;
|
||||
} else {
|
||||
kDebug() << "Creating internal:extender applet failed, probably "
|
||||
|
Loading…
Reference in New Issue
Block a user