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

IText inline editing scrolls to top of the page #1800

Closed
karthikeyanpwt opened this issue Nov 1, 2014 · 2 comments
Closed

IText inline editing scrolls to top of the page #1800

karthikeyanpwt opened this issue Nov 1, 2014 · 2 comments

Comments

@karthikeyanpwt
Copy link

Hi Dude,

First of all i like to thanks to fabric team for his wonderful work.

We are facing one critical issues in fabric.js. We can't able to edit text in inline. While we try to editing the page scrolls to top. We haven't move our site into live for this one issue.Please anyone tell me to how to overcome this issues.

Reference : http://fabricjs.com/test/misc/itext.html @kangax have you seen this ?

Please edit any one of the sample text in the bottom or center of the page.

Thanks in advance. Please do the needful.

The Following Changes are also not working :
#1310
In initHiddenTextArea I changed this
this.hiddenTextarea.style.cssText = 'position: absolute; top: 0; left: -9999px';to this
this.hiddenTextarea.style.cssText = 'position: fixed; top: 0; left: -9999px';

@kangax Anyone there ?

@asturur
Copy link
Member

asturur commented Nov 1, 2014

this completely duplicate of #1310.
opening new issue for same problem makes supporting more complex and less efficent.

anyway did you try last suggestion that was:

position: fixed; bottom: 20px; left: 20px; width: 0px; height :0px; z-index: -999;

for me it appeared to be best solution

@kangax kangax closed this as completed Nov 1, 2014
@karthikeyanpwt
Copy link
Author

HI @asturur

Thanks for your quick response. It's Worked. You saved my time.

I'm already mentioned it is duplicate. LOL :)

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

3 participants