Skip to content

Repeated opening/closing of panel shifts it's position up and left #318

Description

@adrianbj

Version: 2.5.2

Bug Description

av2ricbsgv

Steps To Reproduce

Keep clicking on the tab icon for a panel so that it goes between float and peek modes multiple times.

Expected Behavior

Panel should appear in the same position like this:

74dc0vxda5

Possible Solution

Remove this line:

panel.reposition(-Math.round(Math.random() * 100) - 20, (Math.round(Math.random() * 100) + 20) * (this.isAtTop() ? 1 : -1));

I am sure the purpose for this line. Everything seems to work great without it, even when the debug bar is positioned at the top of the viewport. Maybe I just didn't test enough scenarios to figure out why this is needed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions