Styles are not cloned, here's an example: http://mootools.net/shell/eqhfA/1/
If you move an element to another wrapper it will get its styles (or
none if styles are not specified for element's class) what I want to
do is copy an element together with its appearance - so that it can
escape a parent with overfloat: hidden for example

as for the float thing your solution unfortunately doesn't seem to
work in IE8 either (I get Error: 'ownerDocument.defaultView' is null
or not an object), I'll try to fiddle with that a bit more though

Cheers



On Feb 23, 12:45 am, Fábio M. Costa <[email protected]> wrote:
> are you sure the styles are not cloned?
> I think the problem is that you might be styling your div with the id
> property, and its removed when you clone an element to avoid duplicated ids.
>
> But with this shell you can see that styles are cloned (clone function would
> make little sense if not).
>
> http://mootools.net/shell/eqhfA/
>
> Also, theres some code you could look and maybe overwrite your getStyle, if
> its the float property than you do something, else it uses the current
> implementation.
>
> https://mootools.lighthouseapp.com/projects/2706/tickets/756-elementg...
>
> i just updated it with some code.
>
> --
> Fábio Miranda Costa
> Solucione Sistemas
> Engenheiro de interfaces
>
> On Mon, Feb 22, 2010 at 6:15 PM, bootle <[email protected]> wrote:
> > Here's a version with classes contained in shell not a separate
> > draggr.js file:http://mootools.net/shell/3QHLw/

Reply via email to