Skip to content
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

Incorrect controls position inside a relatively positioned div #11

Closed
poohitan opened this issue Jan 2, 2018 · 3 comments
Closed

Incorrect controls position inside a relatively positioned div #11

poohitan opened this issue Jan 2, 2018 · 3 comments

Comments

@poohitan
Copy link

poohitan commented Jan 2, 2018

Hi there, at first I want to thank you for this great editor.

I have a small problem which I'm sure can be fixed with some editor options.
My editor is placed in a div with position: relative. It makes all the editor absolutely-positioned elements (like image or link controls) appear on incorrect places (shifted somewhere to the right and bottom). When I remove position: relative from parent div, they are positioned well.

Is it possible to set the element which all calculations are relative to? I suppose currently it's <body>.
Or maybe you can just make all the positions calc relatively to the first parent with position: relative or position: absolute instead of <body>?

Jodit Version: 3.0.34

Expected behavior:
All editor controls are positioned correctly regardless parent blocks CSS positions.

Actual behavior:
All editor controls are positioned incorrectly when editor is placed inside a div with position: relative.

@poohitan
Copy link
Author

poohitan commented Jan 2, 2018

Sorry, seems like it's already fixed in 3.1.3.

It's a bit confusing that on releases page 3.0.34 is marked as the latest release, while it's not.

@xdan
Copy link
Owner

xdan commented Jan 4, 2018

Can i close this issue?

@poohitan
Copy link
Author

poohitan commented Jan 4, 2018

Yep, sure.

@xdan xdan closed this as completed Jan 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants