Bug Tracker

Modify

Ticket #5487 (closed bug: duplicate)

Opened 4 years ago

Last modified 4 years ago

animate height or width changes display mode

Reported by: orlleite Owned by:
Priority: major Milestone:
Component: effects Version: 1.3.2
Keywords: animate height width display Cc:
Blocking: Blocked by:

Description (last modified by dmethvin) (diff)

Hi!

When you add a animation to a element, the display css is changed. It's should be the correct way, but not ways. In my case, table-rows get a miss visualization when it's occurs.

I did a little change, for me it's works.

My line 4023:

if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style && this.elem.style.display != "table-row" )

Yours:

if ( ( this.prop == "height" || this.prop == "width" ) && this.elem.style )

Could be others cases like this, where jquery should not change the display mode. In my way, I verify the value of display style, but it's could be a parameter, pass in animate function, for example.

thx.

Change History

comment:1 Changed 4 years ago by dmethvin

  • Description modified (diff)

comment:2 Changed 4 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

Duplicate of #4458.

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.