Thanks Adam, I will look into downloading it from trunk - and thanks for making it open source!
Cheers, Rodders On Sep 8, 12:17 pm, Adam T <[email protected]> wrote: > Hi Rodders, > > I'm guessing you are using v4 or below of the library, in which case, > this is one of the limitations in those versions - effects are applied > to the content of the NEffectPanel. So your contents would move but > the NEffectPanel would stay. > > If you're able to download the code from trunk, then this limitation > disappears, as you no longer need to use an NEffectPanel and can apply > effects directly to widgets. Hopefully it will only be a few weeks > before the trunk becomes a stand-alone download. > > For example, in v4 and below you had to write > > NEffectPanel ep = new NEffectPanel() > Move theEff = new Move(100,50); > Widget someWidget = new SomeWidget(); > ep.add(someWidget); > ep.addEffect(theEff); > ep.playEffects(); > > With v5 (in trunk) you can just write > > Widget someWidget = new SomeWidget(); > Move theEff = new Move(someWidget.getElement(), 100, 50); > theEff.play(); > > Also, when you add a Move effect to an element then it gets assigned > position:absolute property, so if you apply a move to all your boxes, > you may not see the others alter position on screen if you move just > one of them. > > Hope that helps in some way. > > //Adam > > On 7 Sep, 12:26, Rodders <[email protected]> wrote: > > > Hi, > > > I'm hoping someone can help... I've been using the (very useful) gwt- > > fx library (by Adam Tacy) and have run into a couple of problems and > > I'm not sure if it's how I'm structuring my code. > > > I'm trying to layout a bunch of boxes (absolutely positioned) and then > > animate each of them independently > > > e.g. > > > FlowPanel container = new FlowPanel(); > > container.setStylePrimaryName("my-container"); > > > Box boxA = new Box(); > > container.add(boxA); > > > Box boxB = new Box(); > > container.add(boxB); > > > ... > > > The Box Class is a Composite that contains an NEffectPanel as it's > > "initWidget" and I add a bunch of other Widgets to the NEffectPanel > > (and I'm styling the NEffectPanel with a border, background etc). > > > If I try and animate the position one of the Boxes it all goes a bit > > pear shaped - rather than the Box moving, its contents moves...? > > > Is this the correct behaviour and if so is there a way of doing what I > > want? > > > Hope this makes sense! > > > Cheers, > > Rodders --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en -~----------~----~----~----~------~----~------~--~---
