All pastes #728641 Raw Edit

MikeyUSC

public text v1 · immutable
·published 2007-10-07 06:01 UTC
rendered paste body
Index: libs/plasma/containment.cpp
===================================================================
--- libs/plasma/containment.cpp	(revision 722281)
+++ libs/plasma/containment.cpp	(working copy)
@@ -347,6 +347,7 @@
     }
 
     applet->setParentItem(this);
+    applet->updateConstraints(Plasma::AllConstraints);
     //kDebug() << "adding applet" << applet->name() << "with a default geometry of" << geometry << geometry.isValid();
     if (geometry.isValid()) {
         applet->setGeometry(geometry);
@@ -371,8 +372,7 @@
         d->layout->addItem(applet);
     }
 
-    applet->updateConstraints(Plasma::AllConstraints);
-
+    
     kDebug() << applet->name() << "sizehint:" << applet->sizeHint()
                                << "geometry:" << applet->geometry();