Skip to content

Commit fd63fdf

Browse files
committed
Code cleanup for svgTextLineDirective.js
1 parent dda10e6 commit fd63fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/src/modules/sm/Schedule/directives/svgTextLineDirective.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ angular.module('sm').directive('svgTextLine', function() {
88
if (scope.grid.days.length > 3) {
99
if (text.length > 14) {
1010
element = elm.get(0);
11-
element.setAttribute("textLength", (parseFloat(scope.grid.opts.daysWidth) + 1 - 2) + "%");
11+
element.setAttribute("textLength", (parseFloat(scope.grid.opts.daysWidth) - 1) + "%");
1212
element.setAttribute("lengthAdjust", "spacingAndGlyphs");
1313
}
1414
if (text.length > cutoff) {

0 commit comments

Comments
 (0)