I'd say there's a bug in Properties.create() where it "parses" your 
argument to "position: 0.0px".
You might want to ask on http://groups.google.com/group/gwtquery (I suppose 
this is GwtQuery code)

On Wednesday, January 16, 2013 6:45:18 PM UTC+1, Deepak Singh wrote:
>
> Hi,
>
> I have following code
>
>                Properties pp = 
> Properties.create("position:relative;bottom:0px;");
> $(hotel).css(Properties.create("position:fixed;"));
>  $(hotel).animate(pp, 1000, new Function() {
> public void f() {
> eachHotelContainer.add(hotel);
>  hotel.addToShortlist.setVisible(false);
> hotel.removeFromShortlist.setVisible(true);
> $(hotel).css(Properties.create("position:relative;"));
>  shortlistedEachHotelNames.add(hotel.hotelName.etText());
> }
> });
>
> It works well on mozilla and chrome but on IE7/8, i am getting following 
> exception
>
>
> com.google.gwt.core.client.JavaScriptException: (Error) 
> @com.google.gwt.dom.client.Style::setPropertyImpl(Ljava/lang/String;Ljava/lang/String;)([string:
>  
> 'position', string: '0.0px']): Could not get the position property. Invalid 
> argument.
>     at 
> com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:249)
>     at 
> com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:136)
>     at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:571)
>     at 
> com.google.gwt.dev.shell.ModuleSpace.invokeNativeVoid(ModuleSpace.java:299)
>     at 
> com.google.gwt.dev.shell.JavaScriptHost.invokeNativeVoid(JavaScriptHost.java:107)
>     at com.google.gwt.dom.client.Style$.setPropertyImpl$(Style.java)
>     at com.google.gwt.dom.client.Style$.setProperty$(Style.java:2022)
>
>
> It throws exception while calling animate() method.
>
> kindly help.
>
> Deepak Singh 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/pRs-3AWdc48J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to