Made Opera rotation less broken

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@949 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2009-11-16 19:17:18 +00:00
parent b0d826a24b
commit 3d3c1f4454
2 changed files with 11 additions and 7 deletions

View File

@ -274,6 +274,7 @@ body {
stroke-dasharray: none; stroke-dasharray: none;
opacity: 1; opacity: 1;
pointer-events: stroke; pointer-events: stroke;
vector-effect: non-scaling-stroke;
} }
#workarea.wireframe #svgcontent text { #workarea.wireframe #svgcontent text {

View File

@ -1934,6 +1934,13 @@ function BatchCommand(text) {
} }
} }
if(showGrips) {
selectorManager.requestSelector(selectedElements[0]).showGrips(true);
}
else if (selectedElements.length > 1) {
selectorManager.requestSelector(selectedElements[0]).showGrips(false);
}
// make sure the elements are in the correct order // make sure the elements are in the correct order
// See: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition // See: http://www.w3.org/TR/DOM-Level-3-Core/core.html#Node3-compareDocumentPosition
@ -1943,13 +1950,9 @@ function BatchCommand(text) {
} }
}); });
// Make sure null value is at the end
if(!selectedElements[0]) selectedElements.push(selectedElements.shift());
if(showGrips) {
selectorManager.requestSelector(selectedElements[0]).showGrips(true);
}
else if (selectedElements.length > 1) {
selectorManager.requestSelector(selectedElements[0]).showGrips(false);
}
}; };
// TODO: could use slice here to make this faster? // TODO: could use slice here to make this faster?