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

Method getPreferredH

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

Source from the content-addressed store, hash-verified

1154 ///
1155 /// - `cnt`: The container in the FormLayeredPane where the sheet is to be rendered.
1156 private int getPreferredH(Container cnt) {
1157 switch (getPositionInt()) {
1158 case W:
1159 case E:
1160 return cnt.getHeight();
1161 default:
1162 return Math.min(getPreferredH(), cnt.getHeight());
1163 }
1164 }
1165
1166 /// Goes back to the parent sheet with a default (300ms) slide animation. If there
1167 /// is no parent sheet, then this will close the sheet.

Callers 2

showMethod · 0.95
getHiddenYMethod · 0.95

Calls 3

getPositionIntMethod · 0.95
minMethod · 0.95
getHeightMethod · 0.65

Tested by

no test coverage detected