Bug Tracker

Ticket #3189 (new bug)

Opened 4 months ago

Dimensions (height() and width()) fail when dom-node not yet added to document tree.

Reported by: pwnedd Assigned to: brandon
Type: bug Priority: major
Milestone: 1.3 Component: dimensions
Version: 1.2.6 Keywords: dimensions, height, width
Cc: Needs: Review

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

Note: See TracTickets for help on using tickets.