Skip to content

Commit 7914a49

Browse files
committed
work
1 parent 9107003 commit 7914a49

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/vector/svg/Renderer.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -260,12 +260,12 @@ acgraph.vector.svg.Renderer.prototype.measure = function(text, style) {
260260
bbox.height = this.measurementText_['getBBox']().height;
261261
}
262262

263-
var bbox_html = this.measuringHTMLText(text, style);
263+
// var bbox_html = this.measuringHTMLText(text, style);
264264
// console.log(bbox_html);
265-
console.log(bbox, bbox_html);
265+
console.log(bbox);
266266

267-
return new acgraph.math.Rect(bbox.x, bbox.y, bbox.width + additionWidth, bbox.height);
268267
// return bbox_html;
268+
return new acgraph.math.Rect(bbox.x, bbox.y, bbox.width + additionWidth, bbox.height);
269269
};
270270

271271

src/vector/vml/Renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ acgraph.vector.vml.Renderer.VML_IMPORT_ = '#default#VML';
138138
* IE8 mode indicator. IE8 treats VML differently, so we need to know if we are there.
139139
* @type {boolean}
140140
*/
141-
acgraph.vector.vml.Renderer.IE8_MODE = document.documentMode && document.documentMode >= 8;
141+
acgraph.vector.vml.Renderer.IE8_MODE = goog.global.document && goog.global.document.documentMode && goog.global.document.documentMode >= 8;
142142

143143

144144
/**

0 commit comments

Comments
 (0)