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

Popup with Textarea is positioned incorrectly #7577

Closed
pudovika opened this Issue Jul 18, 2014 · 1 comment

Comments

Projects
None yet
2 participants
@pudovika

Issue description

Textarea in Popup gets unexpected height style and popup moves up on page.

Textareas in popup are not being set height style so setting height style for this textarea is quite unexpected behaviour, because when you have opened popup at first time it appears in wrong possition.

This problem appears in JQM 1.4.0 and higher. Also I noticed that height of textarea depends on count of chars in text (looks like 1 char adds 22px to height).

Test page

http://jsbin.com/vufutenu/1

Steps to reproduce

Click button popup 1.

Expected outcome

Popup is opened in the center of screen.

Actual outcome

Popup opens above center, size of Popup changes after a few seconds. Second time popup open in correct position.

P.S. Looks like it related to this issue #6764

@gabrielschulhof

This comment has been minimized.

Show comment
Hide comment
@gabrielschulhof

gabrielschulhof Jul 23, 2014

Contributor

The problem is with autogrow, not popup. For some reason it's calculating that the textarea must be much taller than it really has to be.

Contributor

gabrielschulhof commented Jul 23, 2014

The problem is with autogrow, not popup. For some reason it's calculating that the textarea must be much taller than it really has to be.

@gabrielschulhof gabrielschulhof added this to the 1.4.4 milestone Jul 23, 2014

@gabrielschulhof gabrielschulhof self-assigned this Jul 23, 2014

gabrielschulhof added a commit that referenced this issue Aug 1, 2014

agcolom added a commit to agcolom/jquery-mobile that referenced this issue Nov 26, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment