Bug Tracker

Opened 7 years ago

Closed 7 years ago

#7393 closed bug (fixed)

Elements hidden before appended to the DOM can't be shown

Reported by: bentruyman Owned by:
Priority: blocker Milestone: 1.4.4
Component: effects Version: 1.4.4rc
Keywords: regression Cc:
Blocked by: Blocking:

Description

Worked before:

$('<div>').hide().appendTo('body').show();

It works if hide()is called after the appendTo. Seems like this could be a blocker as I often create elements, hide them before appending them, and once ready show it.

See: http://jsfiddle.net/nxwAq/

Tested and not working in: Chrome 8, Safari 5, Opera 10.63

Seems fine in FF 3.6 & 4 though.

Change History (2)

comment:1 Changed 7 years ago by snover

Component: unfiledeffects
Keywords: regression added
Milestone: 1.51.4.4
Priority: undecidedblocker
Status: newopen

Works fine in 1.4.3. Probably a regression from [9d1bfeb7ffe63b5a7488929b7be847bc1a00f6a6] since olddisplay is being set to “auto”, whereas it used to be empty string.

comment:2 Changed 7 years ago by jeresig

Resolution: fixed
Status: openclosed

Limit the scope of the CSS 'auto' change to just height/width. Fixes #7393.

Changeset: d9478954b9de79a7f3538e935bfd98cdc61ee435

Note: See TracTickets for help on using tickets.