}
itemList.setSize(size);
itemList.layout();
+ if (beforeItemCount != currentItemCount) {
+ itemList.setSize(size);
+ itemList.layout();
+ }
FormData data = new FormData();
data.height = size.y;
data.width = size.x;
}
scrolledList.layout(true, true);
itemListBack.layout(true, false);
+ if (beforeItemCount != currentItemCount) {
+ scrolledList.layout(true, true);
+ itemListBack.layout(true, false);
+ }
+
}
public void resize(int height) {
verticalBar.setVisible(true);
verticalBar.setScrollSize(content.getBounds().height,
Math.min(content.getBounds().height, getClientArea().height), true);
+ setOrigin(0, 0);
} else {
verticalBar.setVisible(false);
verticalBar.setScrollPos(0);