Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Popup with Textarea is positioned incorrectly #7577

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

Popup with Textarea is positioned incorrectly #7577

pudovika opened this issue Jul 18, 2014 · 1 comment
Assignees
Milestone

Comments

@pudovika
Copy link

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
Copy link

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 pushed a commit that referenced this issue Aug 1, 2014
(cherry picked from commit 766a03d)

Closes gh-7582
Fixes gh-7577
agcolom pushed a commit to agcolom/jquery-mobile that referenced this issue Nov 26, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants