From 462b2c58cbc0e6a9f800b8288a3201c6f547c2cb Mon Sep 17 00:00:00 2001 From: Manolo Carrasco Date: Sun, 13 Jun 2010 12:24:42 +0000 Subject: - Select the appropriate DocumentStyleImpl and Selectors for ie8 in .gwt.xml. - Do not change overflow when it is not a resize animation - Restore correctly attibutes in show/hide animations - Restored the parameter force in css and curCSS methods - Changed the way show sets the display property in order to use block only when it is needed - change the parameter order of the setStyleProperty method --- samples/pom.xml | 1 + .../samples/client/GwtQueryEffectsModule.java | 20 +++++++++++++++----- .../java/gwtquery/samples/public/GwtQueryBench.html | 2 ++ .../gwtquery/samples/public/GwtQueryEffects.html | 4 ++++ 4 files changed, 22 insertions(+), 5 deletions(-) (limited to 'samples') diff --git a/samples/pom.xml b/samples/pom.xml index cbaca98d..0e1b5ebc 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -66,6 +66,7 @@ src/main/webapp/gwtquery.samples.GwtQueryPlugin src/main/webapp/gwtquery.samples.GwtQuerySample src/main/webapp/gwtquery.samples.GwtQueryWidgets + src/main/webapp/test src/main/webapp/WEB-INF/classes tomcat www-test diff --git a/samples/src/main/java/gwtquery/samples/client/GwtQueryEffectsModule.java b/samples/src/main/java/gwtquery/samples/client/GwtQueryEffectsModule.java index ca695fdb..80ac00df 100644 --- a/samples/src/main/java/gwtquery/samples/client/GwtQueryEffectsModule.java +++ b/samples/src/main/java/gwtquery/samples/client/GwtQueryEffectsModule.java @@ -33,13 +33,19 @@ public class GwtQueryEffectsModule implements EntryPoint { final Effects a = $(".a, .b > div:nth-child(2)").as(Effects.Effects); - $("#b1").toggle(new Function() { + $("#b0").width(150).css("font-size", "10px").toggle(new Function() { public void f(Element e) { - $("#i1").as(Effects.Effects).animate(" width: '70%', opacity: '0.4', marginLeft: '0.6in', fontSize: '3em', borderWidth: '10px'"); + $("#b0").as(Effects.Effects).animate(" width: '400', opacity: '0.4', marginLeft: '0.6in', fontSize: '24px'"); } }, new Function() { public void f(Element e) { - $("#i1").as(Effects.Effects).animate(" width: '0%', opacity: '1', marginLeft: '0', fontSize: '1em', borderWidth: '5px'"); + $("#b0").as(Effects.Effects).animate(" width: '150', opacity: '1', marginLeft: '0', fontSize: '10px'"); + } + }); + + $("#b1").toggle(new Function() { + public void f(Element e) { + $(".a").toggle(); } }, new Function() { public void f(Element e) { @@ -67,15 +73,19 @@ public class GwtQueryEffectsModule implements EntryPoint { } }, new Function() { public void f(Element e) { - a.animate("left: '+=25%', width: 'hide'"); + a.animate("left: '+=300', width: 'hide'"); } }, new Function() { public void f(Element e) { - a.animate("left: '-=25%', width: 'show'"); + a.animate("left: '-=300', width: 'show'"); } }); $("#b2").toggle(new Function() { + public void f(Element e) { + $(".a").toggle(); + } + }, new Function() { public void f(Element e) { a.as(Effects.Effects).clipUp(); } diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html index caaac70b..1f041bb6 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryBench.html @@ -1,3 +1,5 @@ + + GQuery diff --git a/samples/src/main/java/gwtquery/samples/public/GwtQueryEffects.html b/samples/src/main/java/gwtquery/samples/public/GwtQueryEffects.html index 90b79b28..766a3001 100644 --- a/samples/src/main/java/gwtquery/samples/public/GwtQueryEffects.html +++ b/samples/src/main/java/gwtquery/samples/public/GwtQueryEffects.html @@ -1,3 +1,5 @@ + + GQuery Demo @@ -16,6 +18,7 @@ background: pink; width: 50%; padding: 10px; + display: none; } @@ -31,6 +34,7 @@
Foo bar baz

+

-- cgit v1.2.3