CSS makes some big assumptions on absolute positioning.
See original GitHub issueFirst attempt to throw the simplest Plotly.js + Editor into a create-react-app app.
The Panels have no set width and are positioned 100px
from the right… so if you have a margin…
Issue Analytics
- State:
- Created 6 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
CSS Positioning: absolute, the overused
Because position: absolute takes the element out of the flow of the document, everything else has to be adjusted to compensate for it,...
Read more >does CSS absolute positioning mean don't use it?
Well, no. position:absolute; means it is absolutely positioned in a relatively positioned container. Take the following example:
Read more >CSS Positioned Layout Module Level 3
Absolute positioning, which ignores normal layout entirely, pulling the element out of flow and positioning it relative to its containing block ...
Read more >Absolute center position - Kristijan - Medium
When you are positioning something absolute, position will be decided based on first parent element that has relative position. For this I will...
Read more >Conflicting Absolute Positions
It means our assumption that only one corner of a div can be absolutely positioned on a page creates a problem specifically for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yeh could be a sep issue. Another related but separate issue is that I would like a way to programmatically change which panel is open. Specifically some way of putting the bit of state that controls the open panel into the Application state rather then the editor state. But yeh I’ll make an issue for that specifically.
Cool okay, perfect. I was thinking it might make sense to allow people to change the order of
sidebar
andpanel
. In situations where people might have the editor on the right, we could allow for the sidebar to be flush against the right of the container. But that might be a sep issue.