Skip to content

Tab wrap - flicker when there is not enough room for wrapping tabs to display #115050

Closed

Description

Testing #114827

  • Create multiple editor groups
  • Ensure that the selected tab is not the first one in the editor group
  • Start dragging the sash so that there is not enough room to wrap tabs
  • Notice how the name of the tab that is visible jitters as it switches between the name of the first tab, and the name of the selected tab

recording (1)

Activity

  1. changed the title [-]Visible tab name changes when there is not enough room[/-] [+]Tab wrap - Visible tab name changes when there is not enough room[/+] on Jan 26, 2021
  2. added
    bug
    workbench-tabs
    help wanted
    on Jan 26, 2021
  3. bpasero commented on Jan 26, 2021

    @bpasero
    Contributor

    Yeah I was not able to figure out what triggers this and was even suspecting a browser bug (though didn't follow up).

    //cc sneakyfish5

  4. changed the title [-]Tab wrap - Visible tab name changes when there is not enough room[/-] [+]Tab wrap - tab name changes when there is not enough room[/+] on Jan 27, 2021
  5. changed the title [-]Tab wrap - tab name changes when there is not enough room[/-] [+]Tab wrap - flicker when there is not enough room for wrapping tabs to display[/+] on Jan 27, 2021
  6. bpasero commented on Jan 27, 2021

    @bpasero
    Contributor

    I see this being related to:

    • layout is called
    • we enable wrapping
    • we disable wrapping right after because we figure out the space is too limited
    • somehow the scrollbar is now in a bad spot and needs a proper reset to avoid flicker
  7. goldst commented on Jan 27, 2021

    @goldst
    Contributor

    I was able to find the origin of the bug in doLayoutTabsWrapping: wrapping is activated even when there is no space due to the actions right to the last tab. In the next call, it is disabled again, because the action's size is considered in that case. Constantly switching between wrapping and not wrapping makes it behave weird. I'll make a PR.

  8. added a commit that references this issue on Jan 27, 2021
    b55df27
  9. added a commit that references this issue on Jan 28, 2021
    1c1df3e
  10. bpasero commented on Jan 28, 2021

    @bpasero
    Contributor
  11. added
    unreleased
    insiders-released
    and removed
    unreleased
    on Jan 28, 2021
  12. locked and limited conversation to collaborators on Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bughelp wantedinsiders-releasedverifiedworkbench-tabs

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions