Skip to content

Commit 6cb6560

Browse files
committed
measureText accounts for border style
1 parent 8326152 commit 6cb6560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

editor/static/js/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ window.measureText = function(element, str) {
2828
measurer.style['visibility'] = 'hidden';
2929
}
3030

31-
var keys = ['font-size','font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
31+
var keys = ['font-size','font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing', 'border-style'];
3232
var id = element.value+';'+keys.map(function(key) { return styles[key]; }).join(';');
3333
if(measureText_cache[id]) {
3434
return measureText_cache[id];

0 commit comments

Comments
 (0)