Ticket #11944 (closed bug: duplicate)
Incorrect calculation of dimensions when parent hidden
|Reported by:||Brandon Paluzzi <brandon@…>||Owned by:|
If you meet the following criteria: 1 - A block level parent element is set to display: none 2 - A block level child element has width/height set as a percentage
Then the jQuery functions height() and width() do not work as intended. Instead of calculating the correct pixel size (or returning undefined), they simply drop the percent sign from the CSS-defined width and report that back: e.g., 75% becomes "75"