// Convert percentage values to pixels
if (pos.indexOf("%") > 0) {
- pos = Float.parseFloat(pos.substring(0, pos.length() - 1))
- / 100
- * (orientation == ORIENTATION_HORIZONTAL ? getOffsetWidth()
- : getOffsetHeight()) + "px";
+ int size = orientation == ORIENTATION_HORIZONTAL ? getOffsetWidth()
+ : getOffsetHeight();
+ float percentage = Float.parseFloat(pos.substring(0,
+ pos.length() - 1));
+ pos = percentage / 100 * size + "px";
}
String attributeName;
}
setSplitPosition(newX + "px");
+ client.doLayout(false);
}
private void onVerticalMouseMove(int y) {
}
setSplitPosition(newY + "px");
+ client.doLayout(false);
}
public void onMouseUp(Event event) {
getWidgetForPaintable().setStylenames();
getWidgetForPaintable().position = uidl.getStringAttribute("position");
- getWidgetForPaintable().setSplitPosition(
- getWidgetForPaintable().position);
final VPaintableWidget newFirstChildPaintable = client
.getPaintable(uidl.getChildUIDL(0));