Btw, you can see this fix live here:

http://www.rijkswaterstaat.nl/geotool/

Best regards,
Bart

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


--------- Oorspronkelijk bericht --------
Van: Bart van den Eijnden OSGIS <[EMAIL PROTECTED]>
Naar: MapBuilder-devel <[email protected]>
Onderwerp: Re: [Mapbuilder-devel] Zoombox problem in MSIE7 and FF2
Datum: 31/10/07 13:34

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