Skip to content

Powertip offset when browser scrollbar appears after load #176

@Toutouwai

Description

@Toutouwai

There seems to be a bug where powertips are offset by the width of the browser scrollbar if Powertip is initialised when no scrollbar is visible but the scrollbar is visible when the tooltips are shown (e.g. due to some content being added or revealed after DOM ready that necessitates the scrollbar).

In the screenshots below Powertip is initialised on DOM ready before the scrollbar is visible. This is Chrome v70.0.3538.102 in Windows.

Incorrect position:
2018-11-19_145111

Correct position (by forcing browser scrollbar to be visible on DOM ready via overflow:scroll on body)
2018-11-19_145251

I'm working around this by initialising Powertip after the content (and scrollbar) is visible but it would be good if Powertip handled this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSoftware defects or other problems that should be fixed.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions