Skip to content

Commit 19c984d

Browse files
committed
minor
1 parent 4020c3a commit 19c984d

File tree

1 file changed

+1
-3
lines changed
  • services/static-webserver/client/source/class/osparc/wrapper

1 file changed

+1
-3
lines changed

services/static-webserver/client/source/class/osparc/wrapper/Svg.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -333,18 +333,16 @@ qx.Class.define("osparc.wrapper.Svg", {
333333
const ellipsis = '…';
334334
let low = 0;
335335
let high = text.length;
336-
337336
// Binary search for the max fitting length
338337
while (low < high) {
339-
let mid = Math.floor((low + high) / 2);
338+
const mid = Math.floor((low + high) / 2);
340339
label.text(text.slice(0, mid) + ellipsis);
341340
if (label.bbox().width <= maxWidth) {
342341
low = mid + 1;
343342
} else {
344343
high = mid;
345344
}
346345
}
347-
348346
return text.slice(0, low - 1) + ellipsis;
349347
}
350348

0 commit comments

Comments
 (0)