Hi Isomorphic,
We have some buttons that we add to the tab bar controls, and wanted to add some spacing around the buttons.
I've created a mockup below.
The problem is, the additional height isn't taken into consideration, so it ends up clipping the buttons along the bottom.
We have worked around this by setting the setTabBarThickness to a certain height to accommodate.
Is there a way to get it to draw without clipping the buttons and without using setTabBarThickness?
Thank you
We have some buttons that we add to the tab bar controls, and wanted to add some spacing around the buttons.
I've created a mockup below.
Code:
Button button1 = new Button("Add"); button1.setAlign(Alignment.CENTER); button1.setMinWidth(100); Button button2 = new Button("Remove"); button2.setAlign(Alignment.CENTER); button2.setMinWidth(100); TabSet ts = new TabSet(); ts.setWidth100(); ts.setHeight100(); ts.setTabs(new Tab("Tab one")); HLayout hLayout = new HLayout(); hLayout.setMembers(button1, button2); hLayout.setLayoutTopMargin(2); hLayout.setLayoutBottomMargin(0); hLayout.setLayoutLeftMargin(5); hLayout.setMembersMargin(5); ts.setTabBarControls(TabBarControls.TAB_SCROLLER, TabBarControls.TAB_PICKER, hLayout); ts.setTabBarPosition(Side.BOTTOM); Layout l = new VLayout(); l.setWidth(500); l.setHeight(500); l.addMember(ts); l.show();
We have worked around this by setting the setTabBarThickness to a certain height to accommodate.
Is there a way to get it to draw without clipping the buttons and without using setTabBarThickness?
Thank you
Comment