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

Method checkTabsCanBeSeen

CodenameOne/src/com/codename1/ui/Tabs.java:249–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 }
248
249 private void checkTabsCanBeSeen() {
250 if (UIManager.getInstance().isThemeConstant("tabsOnTopBool", false)) {
251 for (int iter = 0; iter < getTabCount(); iter++) {
252 Component c = getTabComponentAt(iter);
253 if (c.isScrollableY()) {
254 if (c.getStyle().getPaddingBottom() < tabsContainer.getPreferredH()) {
255 c.getStyle().setPadding(BOTTOM, tabsContainer.getPreferredH());
256 }
257 }
258 }
259 }
260 }
261
262 /// {@inheritDoc}
263 @Override

Callers 2

initLafMethod · 0.95
insertTabMethod · 0.95

Calls 9

getInstanceMethod · 0.95
getTabCountMethod · 0.95
getTabComponentAtMethod · 0.95
isScrollableYMethod · 0.95
getStyleMethod · 0.95
isThemeConstantMethod · 0.80
getPaddingBottomMethod · 0.80
getPreferredHMethod · 0.45
setPaddingMethod · 0.45

Tested by

no test coverage detected