File: patch-jquery.jqplot.js

package info (click to toggle)
pgcluu 4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,332 kB
  • sloc: javascript: 24,645; perl: 24,092; makefile: 14; sh: 14
file content (11 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
--- resources/jquery.jqplot.js.orig	2016-08-30 18:50:53.056335603 +0200
+++ resources/jquery.jqplot.js	2016-08-30 18:51:33.211372314 +0200
@@ -9139,7 +9139,7 @@
 
             for (var i=0; i<wl; i++) {
                 w += words[i];
-                if (context.measureText(w).width > tagwidth) {
+                if (context.measureText(w).width > tagwidth && w.length > words[i].length) {
                     breaks.push(i);
                     w = '';
                     i--;