Don't wrap tab bar for TabbedPanels #54

Closed
opened 2021-02-17 16:32:59 +00:00 by makeworld-the-better-one · 4 comments
makeworld-the-better-one commented 2021-02-17 16:32:59 +00:00 (Migrated from gitlab.com)

When you open a lot of tabs in a TabbedPanels, the tab bar wraps and forms multiple lines. I think it would look better if the tab bar went off screen, and the correct tab came into focus (by scrolling) when you went to that tab.

This is what Amfora v1.7.x does, but the upcoming version that will update cview (currently on the cview-update branch) uses TabbedPanels, which changes the behaviour.

When you open a lot of tabs in a `TabbedPanels`, the tab bar wraps and forms multiple lines. I think it would look better if the tab bar went off screen, and the correct tab came into focus (by scrolling) when you went to that tab. This is what Amfora v1.7.x does, but the upcoming version that will update cview (currently on the `cview-update` branch) uses `TabbedPanels`, which changes the behaviour.
tslocum added the
enhancement
label 2021-05-18 15:56:40 +00:00

By removing s.Highlight() in bd144c2430, highlighting the current tab in my application (Amfora) no longer works. Was it a mistake to remove it? Am I right in thinking that that line is why it breaks what I was doing before? If so please re-open the issue.

By removing `s.Highlight()` in bd144c2430499dc834fa1436260b11e6323d77fc, highlighting the current tab in my application (Amfora) no longer works. Was it a mistake to remove it? Am I right in thinking that that line is why it breaks what I was doing before? If so please re-open the issue.

Thanks, that line was indeed removed by mistake. I've just restored it.

Thanks, that line was indeed removed by mistake. I've just restored it.

When I try this out with .SetTabSwitcher(1), the tabs do not scroll so the currently highlighted one is visible, like it used to do.

When I try this out with `.SetTabSwitcher(1)`, the tabs do not scroll so the currently highlighted one is visible, like it used to do.

Thanks, this should be resolved.

Thanks, this should be resolved.
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: tslocum/cview#54
There is no content yet.