Skip to content

[electron-chrome-extensions] Popups using absolute positioning get incorrect dimensions #177

@Kilian

Description

@Kilian

The proton pass extension uses absolute positioning for much of its UI, and this means that (frequently but not always) the preferred size as reported by Electron causes clipping.

unclipped:
Image

Size log:

{ width: 600, height: 430 }
{ width: 0, height: 430 }
{ width: 356, height: 430 }

or sometimes:

{ width: 600, height: 430 }
{ width: 0, height: 25 }
{ width: 0, height: 430 }
{ width: 356, height: 430 }

clipped:
Image

{ width: 600, height: 430 }
{ width: 0, height: 25 }
{ width: 356, height: 56 }

or sometimes:

{ width: 600, height: 430 }
{ width: 0, height: 25 }
{ width: 0, height: 430 }
{ width: 0, height: 25 }
{ width: 356, height: 56 }

Inspecting Proton Pass it seems to do something strange by managing the popup dimensions with CSS custom properties, but then sometimes setting them to 100%. That makes me think this might be a timing issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions