GeoView : Resizing not done the first time we load a page.

Centering not always correct.


svn: r15726
This commit is contained in:
Serge Noiraud 2010-08-13 17:57:40 +00:00
parent 6a781138fe
commit f3c614add6

View File

@ -551,6 +551,11 @@ class GeoView(HtmlView):
self.renderer.execute_script("javascript:addcrosshair('%d','%s','geo-map')"
% (self._config.get("preferences.crosshair"), self.crosspath)
)
_LOG.debug("resize : %dpx" % self.height )
self.renderer.execute_script("javascript:mapstraction.resizeTo"
"('100%%','%dpx');"
% ( self.height - self.header_size - 4 ) )
self.renderer.execute_script("javascript:setcenter(point,uzoom)")
pass
def geoview_options(self, configdialog):