mirror of
https://github.com/ONLYOFFICE/web-apps.git
synced 2026-07-24 09:22:26 +08:00
Fix rev. a85f122bc7 (rename file)
This commit is contained in:
@ -826,7 +826,7 @@ define([
|
||||
}
|
||||
if (this._testCanvas) {
|
||||
var mt = this._testCanvas.measureText(text);
|
||||
return (mt.actualBoundingBoxLeft!==undefined) ? Math.ceil(Math.abs(mt.actualBoundingBoxLeft) + Math.abs(mt.actualBoundingBoxRight)) : (mt.width ? Math.ceil(mt.width)+1 : 0);
|
||||
return (mt.actualBoundingBoxLeft!==undefined) ? Math.ceil(Math.abs(mt.actualBoundingBoxLeft) + Math.abs(mt.actualBoundingBoxRight)) : (mt.width ? Math.ceil(mt.width)+2 : 0);
|
||||
}
|
||||
return -1;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user