Opened 13 years ago
Closed 13 years ago
#6794 closed bug (invalid)
.height() yelds to wrong height on first call
Reported by: | mvlaran | Owned by: | |
---|---|---|---|
Priority: | Milestone: | 1.4.2 | |
Component: | unfiled | Version: | 1.4.2 |
Keywords: | height | Cc: | |
Blocked by: | Blocking: |
Description
scenario: mozilla/5.0 (win; U; NT5.1; PT-BR; rv1.9.2.6) Gecko/20100625 Firefox/3.6.6
I create a hidden html structure, with content, but never shown.
I need to know what will be the height of this scructure prior to showing it.
the first time I call $('#structure_id').height() yelds 37, for instance. Wich is wrong. The second time and so on it yelds the correct value: 31.
I made some tests and the delta varies, some times 4, some times 6, some times 3, 5, etc.
I tried to understand the inners of the jquery height function, but was unable to figure out why this happen.
sorry about my english.
Thanks a lot!
The best place to get programming help is on the forum: http://forum.jquery.com
Only open a bug report if you have a simple test case.