Side navigation
#3186 closed bug (invalid)
Opened July 25, 2008 05:58AM UTC
Closed December 02, 2010 08:07AM UTC
Last modified March 14, 2012 04:08PM UTC
Retrieving height()/width() of a complex div failing in Safari
Reported by: | zerxer | Owned by: | zerxer |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | dimensions | Version: | 1.2.6 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
When trying to view the height/width (using the appropriate functions) of a div that contains just simple HTML (links, text, etc) in Safari, it returns the proper results. When there's something more complex in the div such as a table, it returns 0 for both.
My test page: http://www.gtsplus.net/old/test.php
The second link alerts the proper height of the div on that page which contains both those links but when you click the first link, it resizes the thickbox to 0/0 because those are the values it receives for the div inside the iframe. I have also tried grabbing the values from inside the iframe itself and it's still 0 so it's not just from trying to read the values from outside the iframe.
The function that tries to get the height/width of the div in the iframe is the tb_resize() function at the bottom of my test page.
I hope something like this can be fixed. :( I've really been wanting to get a thickbox auto-resize script up and running.
Attachments (0)
Change History (3)
Changed July 28, 2008 02:22PM UTC by comment:1
component: | core → dimensions |
---|---|
owner: | → brandon |
Changed November 13, 2010 07:34PM UTC by comment:2
owner: | brandon → zerxer |
---|---|
status: | new → pending |
I can reproduce the problem on Safari 5, but the test case isn't simple enough to understand where the problem lies. Thickbox is some pretty old code at this point and may not work with later versions of jQuery. Can you reduce this to a simple test case on jsfiddle?
Changed December 02, 2010 08:07AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
Automatically closed due to 14 days of inactivity.