MCPcopy Create free account
hub / github.com/Card-Forge/forge / updateDisplayTop

Method updateDisplayTop

forge-gui-mobile/src/forge/toolbox/FDialog.java:107–115  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

105 }
106
107 private void updateDisplayTop() {
108 //shift all children into position
109 float offsetDy = lastDy;
110 lastDy = getHeight() - (totalHeight + getBottomMargin()) * revealPercent;
111 float dy = lastDy - offsetDy;
112 for (FDisplayObject child : getChildren()) {
113 child.setTop(child.getTop() + dy);
114 }
115 }
116
117 @Override
118 public void setVisible(boolean visible0) {

Callers 2

doLayoutMethod · 0.95
advanceMethod · 0.80

Calls 5

getBottomMarginMethod · 0.95
getChildrenMethod · 0.80
setTopMethod · 0.80
getHeightMethod · 0.65
getTopMethod · 0.45

Tested by

no test coverage detected