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

Method calcMenuHeight

CodenameOne/src/com/codename1/ui/Dialog.java:1686–1693  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1684 }
1685
1686 private int calcMenuHeight() {
1687 if (getSoftButtonCount() > 1) {
1688 Component menuBar = getSoftButton(0).getParent();
1689 Style menuStyle = menuBar.getStyle();
1690 return menuBar.getPreferredH() + menuStyle.getVerticalMargins();
1691 }
1692 return 0;
1693 }
1694
1695 /// Convenience method to show a dialog sized to match its content.
1696 ///

Callers 1

showPopupDialogMethod · 0.95

Calls 6

getStyleMethod · 0.95
getPreferredHMethod · 0.95
getVerticalMarginsMethod · 0.95
getSoftButtonCountMethod · 0.80
getSoftButtonMethod · 0.80
getParentMethod · 0.65

Tested by

no test coverage detected