Skip to main content

Bug Tracker

Side navigation

#7393 closed bug (fixed)

Opened November 03, 2010 10:17PM UTC

Closed November 03, 2010 11:00PM UTC

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.

Attachments (0)
Change History (2)

Changed November 03, 2010 10:41PM UTC by snover comment:1

component: unfiledeffects
keywords: → regression
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.

Changed November 03, 2010 11:00PM UTC by jeresig comment:2

resolution: → fixed
status: openclosed

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

Changeset: d9478954b9de79a7f3538e935bfd98cdc61ee435