Side navigation
#2953 closed bug (fixed)
Opened May 29, 2008 01:26PM UTC
Closed May 05, 2009 11:42PM UTC
Strange behavior of opera's getPropertyValue on element with display none
Reported by: | lrbabe | Owned by: | brandon |
---|---|---|---|
Priority: | major | Milestone: | 1.3 |
Component: | dimensions | Version: | 1.2.5 |
Keywords: | opera, getPropertyValue, width | Cc: | |
Blocked by: | Blocking: |
Description
Opera returns wrong values when using computedStyle.getPropertyValue of width or height on an element with display:'none' : always 0px.
When using elem.currentStyle instead, values are correct.
After seting the width and height by javascript, the correct value is returned since elem.style[ 'widht' ] is used.
This behavior causes some show effect of enchant to fail.
See attached test case, patch for test/unit/core.js and proposed patch for src/core.js
Tested with Opera 8 and Opera 9.5