From 967d7210cbd56478b2d6edef39fe579c0bb0a268 Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Wed, 12 Nov 2008 09:53:48 +0000 Subject: [PATCH] Less flicker for captions in Safari svn changeset:5874/svn branch:trunk --- .../gwt/client/ui/layout/ChildComponentContainer.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java index 73b92b360e..e6e17402bb 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/layout/ChildComponentContainer.java @@ -361,6 +361,8 @@ public class ChildComponentContainer extends Panel { if (newCaption == null) { newCaption = new ICaption((Paintable) widget, client); + // Set initial height to avoid Safari flicker + newCaption.setHeight("18px"); } boolean positionChanged = newCaption.updateCaption(uidl); @@ -663,6 +665,9 @@ public class ChildComponentContainer extends Panel { caption.setMaxWidth(width); } captionWidth = caption.getRenderedWidth(); + + // Remove initial height + caption.setHeight(""); } } -- 2.39.5