Side navigation
#3189 closed bug (invalid)
Opened July 25, 2008 05:11PM UTC
Closed April 22, 2009 03:15AM UTC
Dimensions (height() and width()) fail when dom-node not yet added to document tree.
| Reported by: | pwnedd | Owned by: | brandon |
|---|---|---|---|
| Priority: | major | Milestone: | 1.3 |
| Component: | dimensions | Version: | 1.2.6 |
| Keywords: | dimensions, height, width | Cc: | |
| Blocked by: | Blocking: |
Description
To reproduce:
var x = $("<span></span>").css('height', 250);
x.height(); 0
x.css("height"); 250px
This is a similar issue to bug #3011.
Attachments (0)
Change History (1)
Changed April 22, 2009 03:15AM UTC by comment:1
| resolution: | → invalid |
|---|---|
| status: | new → closed |
height is a calculated value and a node that doesn't live in the dom doesn't technically have a height