Tabs tittle text scrolling issue

41 views
Skip to first unread message

kousik mondal

unread,
Dec 20, 2016, 1:57:14 PM12/20/16
to CodenameOne Discussions
Tabs title text is scrolling horizontally on pressing tab button inside the tab cotainer, it usually happens when tab title textlength is longer to fit inside the tab space. Supposet there are n number tabs whose combined horizontal space exceeds the screen's total width, the title text starts scrolling within the tab.

Please find the screen short attached to understand the problem more clearly.

tab.png

Shai Almog

unread,
Dec 21, 2016, 2:05:27 AM12/21/16
to CodenameOne Discussions
Use Label.setDefaultTickerEnabled(false) to disable this globally.

kousik mondal

unread,
Dec 21, 2016, 6:50:36 PM12/21/16
to CodenameOne Discussions
How to show the tab title when text length is longer to fit inside the tab space?

Shai Almog

unread,
Dec 22, 2016, 2:55:40 AM12/22/16
to CodenameOne Discussions
Do you mean give different sizes to each tab?
Try defining the following theme constants:
tabsFillRowsBool=true
tabsGridBool=false

kousik mondal

unread,
Dec 22, 2016, 7:09:59 AM12/22/16
to CodenameOne Discussions

After defining those constants there is no change. I can not see the full text of tab name.

Shai Almog

unread,
Dec 23, 2016, 12:40:26 AM12/23/16
to CodenameOne Discussions
If you changed the style of the tabs make sure you set the same amount of padding/margin in unselected/selected & pressed.
Reply all
Reply to author
Forward
0 new messages