Bug 183 - Zoom in box not working in Opera
: Zoom in box not working in Opera
Status: NEW
: Chameleon
Core
: 1.99
: PC Windows 2000
: P4 minor
: FUTURE
Assigned To:
:
:
:
:
:
  Show dependency treegraph
 
Reported: 2004-01-18 09:18 by
Modified: 2004-11-04 18:23 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2004-01-18 09:18:13
The zoom in box is not working in Opera (7.22 on Windows 2000). When trying to 
draw the box, the whole map image turns read. After this the map zooms in 
correctly, but something goes wrong with the drawing code.
------- Comment #1 From 2004-01-18 22:13:12 -------
We have not tested with Opera and probably will not.  If anyone wants to
investigate this one, we would consider incorporating changes to the javascript
code to work with Opera into the mainstream distribution.
------- Comment #2 From 2004-01-19 13:53:25 -------
I will see if I can find some time to check the javascript code for drawing the 
zoom box.
------- Comment #3 From 2004-04-05 13:59:47 -------
any chance of looking at this for the 1.99 release?  
------- Comment #4 From 2004-04-06 15:01:52 -------
I checked to see if this problem still occurs in the pre-release of 1.99. Yes, 
it still occurs.

Then I checked to see if the ROI tool has the same problem in 1.1, yes (but 
different colour ofcourse).

I will try to look into this the coming weekend.
------- Comment #5 From 2004-04-08 08:37:43 -------
updated version to 1.99
------- Comment #6 From 2004-04-11 14:52:09 -------
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 .....
------- Comment #7 From 2004-04-13 09:16:42 -------
do you know what javascript we can use to set the value of CWCIsOpera?
------- Comment #8 From 2004-04-13 09:23:46 -------
CWCIsOpera = navigator.userAgent.indexOf("Opera") != -1;
------- Comment #9 From 2004-07-08 10:57:39 -------
Paul, is this doable for 1.99? 

Changed target to 1.99 RC 1.
------- Comment #10 From 2004-10-23 12:57:41 -------
I have Opera 7.54 and the zoom in box works fine for me, using winxp. This 
doesnt of course help users of earlier versions, but thought I would mention 
it.

Another problem though is that the "Loading Image... Please Wait" dhtml layer 
normally doesnt ever go away. Sometimes when you first load it will disappear, 
but after that any thing you do that brings it up, will have it remain up for 
as long as you are using the map. Everything works fine otherwise, least as 
far as I can tell.

Ken
------- Comment #11 From 2004-10-27 09:01:42 -------
I actually got myself a copy of Opera and can confirm that the loading image
does not go away with latest cvs version.  I am guessing that this is due to the
fact that the onload event is not triggered for images.  Does anyone know of a
javascript reference for Opera?  Or a javascript console/debugger?  I'm not
willing to do a lengthy search for stuff on Opera, but if someone can point me
in the right direction, I will try to make it work.  Better yet, if someone can
fix it and let me know :>