Bug Tracker

Modify

Ticket #5058 (closed bug: worksforme)

Opened 4 years ago

Last modified 3 years ago

span hide, show problem

Reported by: mrgoust Owned by:
Priority: major Milestone: 1.3.2
Component: effects Version: 1.3.2
Keywords: Cc:
Blocking: Blocked by:

Description

hi, i don't sure if it is bug but, situation:

using jquery-1.3.2.min.js

when i use $("span").hide() and then $("span").show() method everything goes ok, but when i use $("span").show('slow') <span> style become wrong (display: block; ) appears in it .

(display: block;) make <span> behavior like <div> it's crash design.

Change History

comment:1 Changed 4 years ago by DanTheMan

I think they have to set the display to block for the height and width animations to work.

Try to avoid animation by using show() / hide() without parameters.

comment:2 Changed 3 years ago by dmethvin

  • Status changed from new to closed
  • Resolution set to worksforme
  • Component changed from unfiled to fx

Correct, elements must be blocks to have their height animated. Inline elements do not have a height.

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.