"..Something other than an int was returned.." warnings in DevMode

1540 views
Skip to first unread message

Flori

unread,
Jun 29, 2012, 5:46:47 AM6/29/12
to google-we...@googlegroups.com
Hey all,

I have absolutley no idea why this warning appears.. maybe someone of u can give me an answer or a hint in the correct direction:

[WARN] [pacadm] - Something other than an int was returned from JSNI method '@com.google.gwt.dom.client.DOMImplStandardBase$ClientRect::getLeft()': Rounding double (5.454545021057129) to int for int

DevMode is still working.. but these warnings are endless (they don't appear in the javascript console)! I'm using gxt 2.2.5 along with gwt 2.4 (same with gwt 2.5 RC1).




Thanks in advance! cheers Flori

Chris Price

unread,
Jun 29, 2012, 5:58:54 AM6/29/12
to google-we...@googlegroups.com

Sorry not at a PC to lookup link for you but check the issue tracker it is a known bug with Chrome.

--
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/-/vnJiefc3x5kJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Thomas Broyer

unread,
Jun 29, 2012, 8:33:43 AM6/29/12
to google-we...@googlegroups.com
Most probably you've zoomed in or out of your page, so you end up with sub-pixel dimensions.

Joseph Lust

unread,
Jun 29, 2012, 10:39:28 AM6/29/12
to google-we...@googlegroups.com
I noticed getting this issue myself last week. Thanks for solving it for me Thomas. The page in question was using. 
-moz-transform: scale3d(1.21098, 1.21098, 1);

Hopefully ClientRect can be updated to correct this defect in the near future.


Sincerely,
Joseph

Thomas Broyer

unread,
Jun 29, 2012, 11:28:02 AM6/29/12
to google-we...@googlegroups.com
The "obvious fix" would be to make the methods' return type 'double' instead of 'int', but unfortunately that would be a breaking change (albeit a small one), so I'm not sure how to best fix this.

Flori

unread,
Jul 1, 2012, 9:47:36 AM7/1/12
to google-we...@googlegroups.com
Thanks Thomas, I didn't notice that the zoom was at 110%. Has solved my problem!
Reply all
Reply to author
Forward
0 new messages