Fixed Issue 769: Text tool defaults to white in FF4
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1960 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
60845f62b3
commit
f639150fed
|
@ -1053,7 +1053,8 @@ var getRefElem = this.getRefElem = function(attrVal) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Function: ffClone
|
// Function: ffClone
|
||||||
// Hack for Firefox bugs where text element features aren't updated.
|
// Hack for Firefox bugs where text element features aren't updated or get
|
||||||
|
// messed up. See issue 136 and issue 137.
|
||||||
// This function clones the element and re-selects it
|
// This function clones the element and re-selects it
|
||||||
// TODO: Test for this bug on load and add it to "support" object instead of
|
// TODO: Test for this bug on load and add it to "support" object instead of
|
||||||
// browser sniffing
|
// browser sniffing
|
||||||
|
@ -8695,7 +8696,11 @@ var changeSelectedAttributeNoUndo = function(attr, newValue, elems) {
|
||||||
if (attr == "#text") {
|
if (attr == "#text") {
|
||||||
var old_w = getBBox(elem).width;
|
var old_w = getBBox(elem).width;
|
||||||
elem.textContent = newValue;
|
elem.textContent = newValue;
|
||||||
elem = ffClone(elem);
|
|
||||||
|
// FF bug occurs on on transformed elements
|
||||||
|
if(elem.getAttribute('transform')) {
|
||||||
|
elem = ffClone(elem);
|
||||||
|
}
|
||||||
|
|
||||||
// Hoped to solve the issue of moving text with text-anchor="start",
|
// Hoped to solve the issue of moving text with text-anchor="start",
|
||||||
// but this doesn't actually fix it. Hopefully on the right track, though. -Fyrd
|
// but this doesn't actually fix it. Hopefully on the right track, though. -Fyrd
|
||||||
|
|
Loading…
Reference in New Issue