Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

fix(Popup): prevent unintentional content wrapping#2073

Closed
miroslavstastny wants to merge 4 commits intomasterfrom
fix/popup-popper
Closed

fix(Popup): prevent unintentional content wrapping#2073
miroslavstastny wants to merge 4 commits intomasterfrom
fix/popup-popper

Conversation

@miroslavstastny
Copy link
Member

Prevent unintentional Popup content wrapping to fix re-positioning on window resize.
Fixes #2072

@DustyTheBot
Copy link
Collaborator

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS

borderRadius: v.borderRadius,
boxShadow: v.boxShadow,

width: 'fit-content',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it will not work for IE:

S91030-15034276
https://developer.mozilla.org/en-US/docs/Web/CSS/width

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And Edge 😢

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But this is just a workaround for #2067 which is a workaround for bug in Chrome 69.
@jurokapsiar - what if we do #2067 conditionally only in Chrome?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agree - in chrome and presumably in all chromium browsers (new edge)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both @levithomason and @dzearing are strongly against browser-specific code

@miroslavstastny
Copy link
Member Author

width: fit-content replaced by display: table which should do the same and be multiplatform.
Tested in Chrome, Edge, IE11

@miroslavstastny
Copy link
Member Author

Fixed better in #2187

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect popup placement after jump-resize

4 participants