|
|
|
|
@ -955,7 +955,7 @@ Licensed under the MIT license.
|
|
|
|
|
|
|
|
|
|
// accept various kinds of newlines, including HTML ones
|
|
|
|
|
// (you can actually split directly on regexps in Javascript,
|
|
|
|
|
// but IE is unfortunately broken)
|
|
|
|
|
// but IE < 9 is unfortunately broken)
|
|
|
|
|
var lines = (t.label + "").replace(/<br ?\/?>|\r\n|\r/g, "\n").split("\n");
|
|
|
|
|
for (var j = 0; j < lines.length; ++j) {
|
|
|
|
|
var line = { text: lines[j] },
|
|
|
|
|
@ -1749,8 +1749,10 @@ Licensed under the MIT license.
|
|
|
|
|
y += line.height/2 + offset;
|
|
|
|
|
offset += line.height;
|
|
|
|
|
|
|
|
|
|
if ($.browser.opera) {
|
|
|
|
|
// FIXME: UGLY BROWSER DETECTION
|
|
|
|
|
if (!!(window.opera && window.opera.version().split('.')[0] < 12)) {
|
|
|
|
|
// FIXME: LEGACY BROWSER FIX
|
|
|
|
|
// AFFECTS: Opera < 12.00
|
|
|
|
|
|
|
|
|
|
// round the coordinates since Opera
|
|
|
|
|
// otherwise switches to more ugly
|
|
|
|
|
// rendering (probably non-hinted) and
|
|
|
|
|
|