#7225 closed bug (fixed)
CSS width and height of hidden and disconnected elements is incorrect
Reported by: | Owned by: | danheberden | |
---|---|---|---|
Priority: | blocker | Milestone: | 1.4.4 |
Component: | css | Version: | 1.4.3 |
Keywords: | regression | Cc: | |
Blocked by: | Blocking: |
Description
Made a test case on jsfiddle.net.
Basically, if a textarea is hidden using a display:none on a parent element, jquery 1.4.3 will return incorrect, negative css height values, instead of the explicit set correct value that jquery 1.4.2 returns
Change History (15)
comment:1 Changed 12 years ago by
comment:2 Changed 12 years ago by
Component: | unfiled → css |
---|---|
Keywords: | regression added |
Priority: | undecided → blocker |
Status: | new → open |
comment:5 Changed 12 years ago by
Summary: | CSS height of hidden elements is incorrect → CSS width and height of hidden elements is incorrect |
---|
comment:6 Changed 12 years ago by
Summary: | CSS width and height of hidden elements is incorrect → CSS width and height of hidden and disconnected elements is incorrect |
---|
comment:8 Changed 12 years ago by
Owner: | set to danheberden |
---|---|
Status: | open → assigned |
comment:9 Changed 12 years ago by
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
Make sure that height/width getters work on hidden inputs and disconnected elements. Fixes #7225.
Changeset: e4a38670b10b1ce776afff389bae34991e986180
comment:10 Changed 12 years ago by
Make sure that the correct height/width of the elements is retreived. Fixes #7225.
Changeset: 7e02cee5ff8b5e9117366d7b43af7b5794f0f258
comment:11 Changed 12 years ago by
Sorry for easy question, but when will this fix be in stable release of Jquery ? I don't know where to get this information. Will it be 1.4.4 ? Right now, I have to 1.4.2 due to this bug, but I am very looking forward to using 1.4.3 enhancements.
comment:12 Changed 12 years ago by
Make sure that .width()/.height() don't return NaN also standardize on returning instead of auto for default values (which is what we do elsewhere in .css() as well). Fixes #7225.
Changeset: 53396b879bd29c090824da182e3cf69158829f82
comment:13 Changed 12 years ago by
Still running into issues with Git version,e.g.:
1.4.3 http://jsfiddle.net/VERw5/1/ Git http://jsfiddle.net/VERw5/2/
Tested in Chrome and FF 3.6.x. I don't know if it's any more general than this. The new behaviour is different than 1.4.2, this is not what I expected and I don't find it logical.