-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Toolbar does not position properly when elementsContainer is inside absolute or fixed dom #857
Comments
First off, it's good to hear you're having success with react. There are 2 things I can think of around this:
We would gladly accept a pull request to fix this for option 1, as the issue you are describing has likely been encountered by others, and probably be encountered by others moving forward as well 😄 |
@nmielnik thanks for the quick response. Another relevant issue worth noting is that using |
@disintegrator have you found a solution for this? I'm trying to use medium-editor inside an absolutely positioned container which is even scrollable. |
The top position of the toolbar gets screwed up because the window.pageYOffset is used in the calculation when
elementsContainer
is inside a parent with absolute/fixed position (think: modals).On my page I follow these steps:
Issue: toolbar vertical alignment is off
Note: I am using the editor in a react app with the following config (the two refs are divs):
Seen below is a full screen modal over a scrollable body.
![image](https://cloud.githubusercontent.com/assets/678548/10787602/51225f02-7dc6-11e5-8d47-ce33c9a9a243.png)
The text was updated successfully, but these errors were encountered: