What steps will reproduce the problem?
1. In IE, Drag the cursor over the zoomDiv and the entire div will select,
turning the map blue.
What is the expected output?
- Dragging should not select the divs.
What do you see instead?
- In IE only, the divs will select and highlight, frustrating users with a
blue screen.
The fix: add zoomDiv.setAttribute('unselectable', 'on', 0); to the code
below. This seems to address the issue.
var zoomDiv = document.createElement("div");
var DIVS_TO_CREATE =
['outlineDiv', 'cornerTopDiv', 'cornerLeftDiv', 'cornerRightDiv', 'cornerBo
ttomDiv'];
for (var i=0; i<DIVS_TO_CREATE.length; i++) {
var id = DIVS_TO_CREATE[i];
var div = document.createElement("div");
DragZoomUtil.style([div], {position: 'absolute', display: 'none'});
zoomDiv.appendChild(div);
zoomDiv.setAttribute('unselectable', 'on', 0);
G[id] = div;
}
Original issue reported on code.google.com by Kori.Mal...@gmail.com on 29 Jan 2009 at 5:20
Original issue reported on code.google.com by
Kori.Mal...@gmail.com
on 29 Jan 2009 at 5:20