void () { int height = myOldHeight; super.validateTree(); height -= getHeight(); if (height != 0) { myVerticalScrollBar.setValue(myVerticalScrollBar.getValue() - height); } myOldHeight = getHeight(); }