Skip to content

Settings UI Always Scrolls Automatically While Check or Uncheck an Option #68385

Closed

Description

@byyxx128

See the GIF directly.

bug

As shown above, the settings UI always scrolls automatically, so I cannot find the modification because it went away. Marking or deselecting any item may cause this issue.

  • VS Code version: Code 1.31.0 (7c66f58, 2019-02-05T22:35:56.624Z)
    OS version: Windows_NT x64 10.0.18334

Activity

  1. chpxu commented on Feb 11, 2019

    @chpxu

    Annoyed me so much. Note that it happens with dropdowns and selecting an item, and occasionally by inputting textbox and clicking to defocus it.

  2. sethmnielsen commented on Feb 15, 2019

    @sethmnielsen

    Having this exact problem as well. I just installed VS code and am having this problem while giving it a trial run. Sigh....

  3. added
    bug
    settings-editor
    on Feb 17, 2019
  4. added this to the February 2019 milestone on Feb 17, 2019
  5. roblourens commented on Feb 18, 2019

    @roblourens
    Member

    Maybe related to #65319

  6. removed this from the February 2019 milestone on Feb 24, 2019
  7. added a commit that references this issue on Feb 24, 2019
  8. roblourens commented on Feb 24, 2019

    @roblourens
    Member

    This isn't what I thought it was, I have to assign to you João Moreno (@joaomoreno).

    I think the ListView renders the setting items with their default heights, then rerenders and saves the offset of the anchor element. Then it fixes the heights of the elements and maintains the offset of the anchor element. But since it measured the anchor element when the elements had default heights, the list will be shifted if the real heights were different from the default heights. Maybe an anchor element should be measured before rendering the items with default heights or something like that. I made the default heights more accurate which helps.

  9. joaomoreno commented on Feb 25, 2019

    @joaomoreno
    Contributor

    roblourens Why is the list re-rendered when a check box is clicked?

    I made the default heights more accurate which helps.

    👍

  10. roblourens commented on Feb 25, 2019

    @roblourens
    Member

    When the config service says something changed, we rerender everything. It seems unnecessary in this case but it's hard to tell that the change event came "from" this instance of the settings editor and also, some values can be normalized when they get back to us, and since it should be safe to rerender, I don't put a lot of effort into reducing unneeded renders.

    Another way to repro this, open two settings editors in two groups, change a setting in Group 1, and see the editor in Group 2 scroll.

    If this just can't really be fixed there are things I can do like updating the value of a rendered setting row without actually calling setChildren. But that only works for some settings, adds more complexity, etc.

  11. joaomoreno commented on Feb 26, 2019

    @joaomoreno
    Contributor

    It can definitely be fixed. I was just wondering why the rerender was needed. ;)

  12. joaomoreno commented on Mar 13, 2019

    @joaomoreno
    Contributor
  13. added a commit that references this issue on Mar 27, 2019
    58a4260
  14. locked and limited conversation to collaborators on May 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bugsettings-editortree-widgetverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions