FastStringSet updatedSet = FastStringSet.create();
- JsArrayString needsHeightUpdateArray = needsHeightUpdate.dump();
- for (int i = 0; i < needsHeightUpdateArray.length(); i++) {
- String pid = needsHeightUpdateArray.get(i);
+ JsArrayString needsWidthUpdateArray = needsWidthUpdate.dump();
- VPaintableWidget paintable = (VPaintableWidget) paintableMap
- .getPaintable(pid);
+ for (int i = 0; i < needsWidthUpdateArray.length(); i++) {
+ String pid = needsWidthUpdateArray.get(i);
+
+ VPaintable paintable = paintableMap.getPaintable(pid);
if (paintable instanceof CalculatingLayout) {
CalculatingLayout cl = (CalculatingLayout) paintable;
- cl.updateVerticalSizes();
-
+ cl.updateHorizontalSizes();
} else if (paintable instanceof ResizeRequired) {
ResizeRequired rr = (ResizeRequired) paintable;
rr.onResize();
- needsWidthUpdate.remove(pid);
+ needsHeightUpdate.remove(pid);
}
updatedSet.add(pid);
}
- JsArrayString needsWidthUpdateArray = needsWidthUpdate.dump();
- for (int i = 0; i < needsWidthUpdateArray.length(); i++) {
- String pid = needsWidthUpdateArray.get(i);
+ JsArrayString needsHeightUpdateArray = needsHeightUpdate.dump();
+ for (int i = 0; i < needsHeightUpdateArray.length(); i++) {
+ String pid = needsHeightUpdateArray.get(i);
- VPaintable paintable = paintableMap.getPaintable(pid);
+ VPaintableWidget paintable = (VPaintableWidget) paintableMap
+ .getPaintable(pid);
if (paintable instanceof CalculatingLayout) {
CalculatingLayout cl = (CalculatingLayout) paintable;
- cl.updateHorizontalSizes();
+ cl.updateVerticalSizes();
} else if (paintable instanceof ResizeRequired) {
ResizeRequired rr = (ResizeRequired) paintable;
rr.onResize();