Skip to main content

Bug Tracker

Side navigation

#6794 closed bug (invalid)

Opened July 16, 2010 02:16AM UTC

Closed July 21, 2010 01:33AM UTC

.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:

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!

Attachments (0)
Change History (1)

Changed July 21, 2010 01:33AM UTC by dmethvin comment:1

resolution: → invalid
status: newclosed

The best place to get programming help is on the forum:

Only open a bug report if you have a simple test case.