Zn2O / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

MapWidget sizes as percentages are not working #152

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Found in Release:
revision 442

Detailed description:
according to my tests, it seems to me that the "void 
MapWidget.setSize(String,String)" method does 
not understand sizes expressed as percentages. This also applies to the "void 
MapWidget.setWidth(String)" and "void MapWidget.setHeight(String)" methods.

Workaround if you have one:

Links to the relevant GWT Developer Forum posts:

Original issue reported on code.google.com by russo...@gmail.com on 20 Jul 2008 at 1:33

GoogleCodeExporter commented 9 years ago
Can you give some sample code?  Using percentages as a height is a tricky 
thing.  

1) Try changing your enclosing widget to a different type.  VerticalPanel is
implemented with a <table> element and might behave differently from 
AbsolutePanel
which is implemented with a <div>

2) If you have a <DOCTYPE...> declaration HTML host page setting the app into
Standards mode, you might try removing the <DOCTYPE ...> declaration to put the
browser rendering engine into quirks mode.

Original comment by galgwt.reviews@gmail.com on 20 Jul 2008 at 2:30

GoogleCodeExporter commented 9 years ago
Thanks for the reply. Using the setWidth(String) method with a percentage 
value, and a pixel value with the 
setHeight(String) method, embedding the MapWidget inside a VerticalPanel has 
worked fine.
Really sorry for the useless issue.
F.

Original comment by russo...@gmail.com on 20 Jul 2008 at 4:17

GoogleCodeExporter commented 9 years ago
Thanks for the followup.  You can always try the Google-Web-Toolkit Google group
first if you are not sure an issue is a but.

Original comment by galgwt.reviews@gmail.com on 20 Jul 2008 at 10:27

GoogleCodeExporter commented 9 years ago

Original comment by zundel@google.com on 21 Dec 2009 at 1:57