From cf40a07331b0e1542e1cd6bce0dfe1ff18a618c8 Mon Sep 17 00:00:00 2001 From: Jason Stubbs Date: Sat, 29 Dec 2007 05:03:05 +0000 Subject: [PATCH] An applets sizeHint() is sometimes based on constraints so make sure that the applet's constraints are up to date before using its sizeHint() svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=754125 --- containment.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/containment.cpp b/containment.cpp index 9afacaf9f..893edab93 100644 --- a/containment.cpp +++ b/containment.cpp @@ -466,6 +466,7 @@ Applet* Containment::addApplet(const QString& name, const QVariantList& args, ui //the applet needs to be given constraints before it can set its geometry applet->updateConstraints(Plasma::AllConstraints); + applet->flushUpdatedConstraints(); //kDebug() << "adding applet" << applet->name() << "with a default geometry of" << appletGeometry << appletGeometry.isValid(); if (appletGeometry.isValid()) {