mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-26 07:44:56 +01:00
Fix Firefox bugs ...
This commit is contained in:
parent
7c10b00435
commit
0f2af2cb74
@ -1173,7 +1173,7 @@ mindplot.Topic = new Class({
|
|||||||
var relationships = child.getRelationships();
|
var relationships = child.getRelationships();
|
||||||
result = result.concat(relationships);
|
result = result.concat(relationships);
|
||||||
|
|
||||||
var innerChilds = core.Utils.flattenTopicChildElements(child);
|
var innerChilds = this._flatten2DElements(child);
|
||||||
result = result.concat(innerChilds);
|
result = result.concat(innerChilds);
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -155,14 +155,25 @@ web2d.peer.svg.TextPeer = new Class({
|
|||||||
},
|
},
|
||||||
|
|
||||||
getWidth : function () {
|
getWidth : function () {
|
||||||
|
// Firefox hack for this issue:http://stackoverflow.com/questions/6390065/doing-ajax-updates-in-svg-breaks-getbbox-is-there-a-workaround
|
||||||
|
try {
|
||||||
var computedWidth = this._native.getBBox().width;
|
var computedWidth = this._native.getBBox().width;
|
||||||
|
} catch(e) {
|
||||||
|
computedWidth = 10;
|
||||||
|
}
|
||||||
|
|
||||||
var width = parseInt(computedWidth);
|
var width = parseInt(computedWidth);
|
||||||
width = width + this._font.getWidthMargin();
|
width = width + this._font.getWidthMargin();
|
||||||
return width;
|
return width;
|
||||||
},
|
},
|
||||||
|
|
||||||
getHeight : function () {
|
getHeight : function () {
|
||||||
|
// Firefox hack for this issue:http://stackoverflow.com/questions/6390065/doing-ajax-updates-in-svg-breaks-getbbox-is-there-a-workaround
|
||||||
|
try {
|
||||||
var computedHeight = this._native.getBBox().height;
|
var computedHeight = this._native.getBBox().height;
|
||||||
|
} catch(e) {
|
||||||
|
computedHeight = 10;
|
||||||
|
}
|
||||||
return parseInt(computedHeight);
|
return parseInt(computedHeight);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -38,11 +38,11 @@ function buildDesigner(options) {
|
|||||||
console.log(e);
|
console.log(e);
|
||||||
});
|
});
|
||||||
|
|
||||||
// window.onerror = function()
|
window.onerror = function()
|
||||||
// {
|
{
|
||||||
// errorDialog.show();
|
errorDialog.show();
|
||||||
// };
|
};
|
||||||
//
|
|
||||||
// Configure default persistence manager ...
|
// Configure default persistence manager ...
|
||||||
var persistence;
|
var persistence;
|
||||||
if (options.persistenceManager) {
|
if (options.persistenceManager) {
|
||||||
|
Loading…
Reference in New Issue
Block a user