MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / getHiddenY

Method getHiddenY

CodenameOne/src/com/codename1/ui/Sheet.java:1093–1106  ·  view source on GitHub ↗
(Container cnt)

Source from the content-addressed store, hash-verified

1091 ///
1092 /// - `cnt`: The container in the FormLayeredPane where the sheet is to be rendered.
1093 private int getHiddenY(Container cnt) {
1094 switch (getPositionInt()) {
1095 case S:
1096 case C:
1097 return cnt.getHeight();
1098 case W:
1099 case E:
1100 return 0;
1101 case N:
1102 return -getPreferredH(cnt);
1103 default:
1104 return 0;
1105 }
1106 }
1107
1108 /// Gets the preferred width of the sheet. Will depend on where it is rendered. If position is CENTER,
1109 /// then the preferred width will be the natural preferred width of the sheet. But NORTH or SOUTH,

Callers 3

showMethod · 0.95
hideMethod · 0.95

Calls 3

getPositionIntMethod · 0.95
getPreferredHMethod · 0.95
getHeightMethod · 0.65

Tested by

no test coverage detected