[Chameleon-dev] [Bug 183] Zoom in box not working in Opera

bugzilla-daemon at www.maptools.org bugzilla-daemon at www.maptools.org
Sun Apr 11 14:52:11 EDT 2004


http://www.maptools.org/bugzilla/show_bug.cgi?id=183





------- Additional Comments From bartvde at xs4all.nl  2004-04-11 14:52 -------
I have had a short look at this.

The problem is in the fact that Opera does not support the layer.clip
functionality used in the CWCDHTML_ClipLayer function of cwc_dhtml.js.

A solution to fully get this working in Opera would need a totally different
approach for Opera, which is beyond my current scope.

What happens in the current Chameleon version is that the user gets a complete
red map when starting with zooming, and this is quite irritating.

I would suggest a minor fix which does not draw the box, but which does not
result in a red map image. Ideally this should be combined with a transparent
pixel, as now you see a small pixel in the upper left corner of the map.

function CWCDHTML_ClipLayer(name, clipleft, cliptop, clipright, clipbottom)
{
    var layer = CWCDHTML_GetLayer(name);
    if (layer != null) 
    {
      if(CWCIsOpera)
      {
    	  layer.width = 0;
    	  layer.height = 0;
      }
      else if .....



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Chameleon-dev mailing list