I know this problem, but you can work around it.

There are javascript libs out there to listen to text resizes, see for
instance:

http://www.alistapart.com/articles/fontresizing

Then you can clear OL's caches, something like:

function onFontResize(e,args) {
  map.events.element.offsets = null;
  for(var i=0; i< map.controls.length; i++) {
    var control = map.controls[i];
    if (control.divEvents) { control.divEvents.element.offsets = null; }
    if (control.elementEvents) { control.elementEvents.element.offsets =
null; }
    if (control.rectEvents) { control.rectEvents.element.offsets = null; }
  }
}

Best regards,
Bart

--
Bart van den Eijnden
OSGIS, Open Source GIS
http://www.osgis.nl


--------- Oorspronkelijk bericht --------
Van: MapBuilder-devel <[email protected]>
Naar: MapBuilder-devel <[email protected]>
Onderwerp: [Mapbuilder-devel] Zoombox problem in MSIE7 and FF2
Datum: 31/10/07 13:27

> Fellow developers,
> 
> An &quot;interesting&quot; zoombox problem with MapBuilder under MSIE7 and
FF2 was
> reported to me.  Reproduce as follows:
> 
> - open e.g. http://demo.communitymapbuilder.org/demo/mapbuilder/
> - draw a zoombox on the map: OK, box is drawn where you put the mouse
>   pointer, map zooms in OK
> - now press Ctrl+ [Control-Plus] a few times (increase the font size)
> - draw a zoombox on the map: not OK, the box is drawn in the wrong place!
> 
> Here the paths between MSIE7 and FF2 start to differ: in MSIE7 the
> problem is persistent, i.e. the zoombox is drawn in the wrong place
> consistently; in FF2 after the map has been zoomed, subsequent zoomboxes
> are drawn in the right place again.  I guess the difference is that
> MSIE7 also zooms the map image and FF2 does not.
> 
> Anyone seen this before, knows what causes this and, more importantly,
> has an idea for a fix?
> 
> Regards,
> -- 
> -- Gertjan van Oosten, [EMAIL PROTECTED], West Consulting B.V., +31 15 2191
600
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now &gt;&gt; http://get.splunk.com/
> _______________________________________________
> mapbuilder-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel
> 
> 




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
mapbuilder-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mapbuilder-devel

Reply via email to