Forum: Rails Spinoffs (closed, excessive spam) The issue about Effect.Scale for padding style.

Posted by zhang (Guest)
on 2008-06-20 02:27
(Received via mailing list)
When I want to Scale a div block with padding styles, the initail
postion of the Scale animation
had been enlarged.

Are there any ways to solve it?

Regards,

Zhang

2008/6/20
Posted by Christophe Porteneuve (tdd)
on 2008-06-20 08:59
(Received via mailing list)
zhang a écrit :
> When I want to Scale a div block with padding styles, the initail
> postion of the Scale animation
> had been enlarged.

This is an issue common to all Scale-dependent effects (such as Blind
effects).

The workaround is to wrap your element inside another container with no
padding whatsoever, and scale that surround element.  You'll notice
Slide effects require that anyway…

--
Christophe Porteneuve aka TDD
tdd@tddsworld.com
This topic is locked and can not be replied to.