diff options
-rw-r--r-- | src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java b/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java index a626bcaae1..cd4070ee6c 100644 --- a/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java +++ b/src/com/itmill/toolkit/terminal/gwt/client/ui/IOrderedLayout.java @@ -665,22 +665,21 @@ public class IOrderedLayout extends CellBasedLayout { private void recalculateLayoutAndComponentSizes() {
recalculateLayout();
+ if (!(isDynamicHeight() && isDynamicWidth())) {
+ /* First update relative sized components */
+ for (ChildComponentContainer componentContainer : widgetToComponentContainer
+ .values()) {
+ client.handleComponentRelativeSize(componentContainer
+ .getWidget());
+ }
+ }
+
if (isDynamicHeight()) {
/*
* Height is not necessarily correct anymore as the height of
* components might have changed if the width has changed.
*/
- /* First update relative sized components */
- for (ChildComponentContainer componentContainer : widgetToComponentContainer
- .values()) {
- if (componentContainer
- .isComponentRelativeSized(ORIENTATION_HORIZONTAL)) {
- client.handleComponentRelativeSize(componentContainer
- .getWidget());
- }
- }
-
/*
* Get the new widget sizes from DOM and calculate new container
* sizes
|