Bug Tracker

Modify

Ticket #7173 (closed bug: invalid)

Opened 4 years ago

Last modified 4 years ago

slideDown does not slide correctly on dinamically created layers

Reported by: elboletaire Owned by:
Priority: undecided Milestone: 1.4.3
Component: effects Version: 1.4.2
Keywords: Cc:
Blocking: Blocked by:

Description

When I try to do this:

var div = $(document.createElement("div")).hide().text("Here comes the text").slideDown(); $("#UserField").parent().after(div);

The slideDown effect does not work propperly. It works if I change the effect for a fadeIn effect or if I do this:

var div = $(document.createElement("div")).hide().text("Here comes the text"); $("#UserField").parent().after(div); div.slideDown();

Change History

comment:1 Changed 4 years ago by elboletaire

Here are the tests:

 http://jsfiddle.net/pvmGU/8/

comment:2 Changed 4 years ago by john

  • Status changed from new to closed
  • Resolution set to invalid
  • Component changed from unfiled to effects

I'm a little bit confused: Why would you start sliding down a div that isn't in the page? There are going to be all sorts of problems with that - namely problems with determining how tall to make the div. You should definitely start sliding it down after inserting the div.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.