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

Chrome expanding textarea + float div positioning #19

Closed
bbpennel opened this issue Nov 4, 2012 · 3 comments
Closed

Chrome expanding textarea + float div positioning #19

bbpennel opened this issue Nov 4, 2012 · 3 comments

Comments

@bbpennel
Copy link

bbpennel commented Nov 4, 2012

Placing an expanding textarea next to a floating div, such as a field label, causes the textarea to render on top of the div in Chrome, but not Firefox or IE:

http://jsfiddle.net/bbpennel/NvHr7/

While trying to figure out what was going on, I toggled off and on the position rule on the embedded textarea and found doing so magically fixed the positioning issue.

Changing positioning to static, forcing a redraw, and then switching back to position:absolute seems to do it:
http://jsfiddle.net/bbpennel/ge856/1/

Just trying to trigger a redraw is enough though.

@bgrins
Copy link
Owner

bgrins commented Nov 7, 2012

This layout stuff is always tricky. This is probably an issue with the generated markup and css expecting to take up the full width of the container. Interesting that it doesn't happen in other browsers though.

I've looked into some similar issues before (here: #8 and here: https://github.com/bgrins/ExpandingTextareas/commits/cleaner-css) but have never been able to completely fix some of the quirkiness.

@brianmhunt
Copy link

I cannot reproduce this issue from the given jsFiddle in Chrome 26.0.1410.43. Has rendering in Chrome been updated?

@bgrins
Copy link
Owner

bgrins commented Apr 5, 2013

@brianmhunt I can't reproduce either. Your theory seems plausible, or maybe we ended up fixing it at some point and not realizing it!

@bgrins bgrins closed this as completed Apr 5, 2013
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