()
| 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 | /// |
no test coverage detected