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

Parent style of transform: scale(1,1) causing page scrolling problems with ACE #3245

Closed
bostondevin opened this issue Mar 23, 2017 · 5 comments · Fixed by #3279
Closed

Parent style of transform: scale(1,1) causing page scrolling problems with ACE #3245

bostondevin opened this issue Mar 23, 2017 · 5 comments · Fixed by #3279

Comments

@bostondevin
Copy link

If Ace is inside a container that has style="transform: scale(1,1") when you select into the ACE editor, the window scrolls up to the top of the page and you can't focus into it.

@pabloliz
Copy link

im experiencing this problem too.

@nightwing
Copy link
Member

This is caused by a bug in the behavior of position fixed.

#3279 adds a workaround for that, but it needs some more work before it can be merged https://rawgit.com/ajaxorg/ace/scroll-bug/demo/scrollable-page.html

until this is fixed in the next version, please add

.ace_text-input {position:absolute!important}

somewhere in your css as a workaround

@JoshBargar
Copy link

Any update on this? I am experiencing the same problem, but I would really prefer not to edit the ace source code..

@hafridign
Copy link

Im actually running in to the same problem as well.

@ColdHeat
Copy link

ColdHeat commented Aug 7, 2017

Same issue and the CSS provided doesn't fix it.

I was able to fix it by adding the following although it doesn't work particularly well:

body {
    transform: translateZ(0);
}

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

Successfully merging a pull request may close this issue.

6 participants