Opened 12 years ago

Closed 12 years ago

#4361 closed defect (wontfix)

dojo.fx.slideTo destroys default alignment

Reported by: tk Owned by: Bryan Forbes
Priority: high Milestone:
Component: fx Version: 0.9
Keywords: slideTo fx Cc: tk
Blocked By: Blocking:

Description

Example can be found here: http://dojo.xnet.org/dojo_fx_slideto_bug.html

Basically, if you click "Slide 1" the first div immediately jumps left (losing its alignement) and then slides...

note: the jumping occurs as soon as slideTo() is called, no need to .play() it even

Slide2 works fine, its positioned statically, no alignment... just to show the difference in behaviors.

Change History (3)

comment:1 Changed 12 years ago by Bryan Forbes

The URL is no longer valid. Could you put your test back up so I can see what is going wrong?

comment:2 in reply to:  1 Changed 12 years ago by tk

Replying to BryanForbes:

The URL is no longer valid. Could you put your test back up so I can see what is going wrong?

Sorry, it got moved due to my test site for Dtk+Drupal. I have relocated the test file to here: http://tekky.xnet.org/dojo_fx_slideto_bug.html

-Karl

comment:3 Changed 12 years ago by bill

Resolution: wontfix
Status: newclosed

Hmm, you are sliding a

<div align=center>

... initially it's effectively width=100% (since it's a block level element with position:static), but the slide code makes that position:absolute which means that it's no longer width=100%, but rather just wide enough to contain it's contents.

The only way to make this work is for the slide code to change the element to position: relative rather than position: absolute, but I don't think we want to do that, so I'm going to close this bug to say that that isn't supported.

Note: See TracTickets for help on using tickets.