question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Popover] Remove fixed positioning dependent on scroll position

See original GitHub issue

I had a look around for any issue that’s mentioned this before but couldn’t find anything. It’s an obvious one, so I suspect its been raised and gone over before so if that’s the case apologies for the time wasting.

Problem Description

There’s a lot of rubberbanding with dynamically positioned components when scrolling, a good example of this is the Popover: http://www.material-ui.com/v0.15.0-alpha.1/#/components/popover. Is there a reason material-ui uses a full screen fixed container to position dynamic elements as opposed to absolute positioning on the window, or even absolute in a local container? It would produce a much better UX if components didn’t move when scrolling.

Another side effect of this is that you can’t easily use hover event listeners to open popovers, since when the full screen layer is created it triggers an onMouseLeave.

Versions

  • Material-UI: 0.15
  • React: 0.14
  • Browser: Google Chrome, Safari

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:6
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mbrookescommented, Feb 10, 2017

@nathanmarks Was this resolved for next? I see the component was migrated, but as there’s no Popover demo yet, (and no other popover based component demos to test with), I’m not sure of the status.

If not, then perhaps we should be thinking of using Tether? If it’s good enough for bootstrap… 😄

0reactions
oliviertassinaricommented, Aug 22, 2017

If not, then perhaps we should be thinking of using Tether? If it’s good enough for bootstrap…

Bootstrap moved to popper.js lately. I think that we could be taking advantage of this library for new use cases. As for the v1-beta branch, we have been blocking the scroll with the fixed positioned element. I do think that the issue is solved.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Popover] Remove fixed positioning dependent on scroll position
Is there a reason material-ui uses a full screen fixed container to position dynamic elements as opposed to absolute positioning on the window, ......
Read more >
Changing the position of Bootstrap popovers based on the ...
No it shouldn't be the accepted answer. The "placement" option does not take the window edges into account, only the parent element/container boundaries....
Read more >
Change Bootstrap Popover Position - Coding Explained -
Changing the position of a Bootstrap Popover can be done with a few tricks. Learn how to do advanced positioning with Bootstrap Popover...
Read more >
Popovers · Bootstrap v5.0
Popovers rely on the 3rd party library Popper for positioning. ... must be hidden before their corresponding elements have been removed from the...
Read more >
FAQ - Popper
Why is my popper jittering while scrolling? If your reference element is position: fixed , use the "fixed" strategy: createPopper(reference, popper ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found