Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
5aa495d0
Commit
5aa495d0
authored
May 09, 2015
by
Torkel Ödegaard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restored some previous grafana modifications to jquery flot
parent
2e6c2347
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
public/vendor/jquery/jquery.flot.js
+5
-3
No files found.
public/vendor/jquery/jquery.flot.js
View file @
5aa495d0
...
...
@@ -371,7 +371,7 @@ Licensed under the MIT license.
info
=
styleCache
[
text
]
=
{
element
:
element
,
positions
:
[]
};
var
size
=
null
;
//
this._textSizeCache[text];
var
size
=
this
.
_textSizeCache
[
text
];
if
(
size
)
{
info
.
width
=
size
.
width
;
info
.
height
=
size
.
height
;
...
...
@@ -380,7 +380,6 @@ Licensed under the MIT license.
info
.
height
=
element
.
outerHeight
(
true
);
this
.
_textSizeCache
[
text
]
=
{
width
:
info
.
width
,
height
:
info
.
height
};
}
element
.
detach
();
}
...
...
@@ -1422,7 +1421,8 @@ Licensed under the MIT license.
var
info
=
surface
.
getTextInfo
(
layer
,
t
.
label
,
font
,
null
,
maxWidth
);
labelWidth
=
Math
.
max
(
labelWidth
,
info
.
width
);
/// Grafana fix, add +1 to label width
labelWidth
=
Math
.
max
(
labelWidth
,
info
.
width
+
1
);
labelHeight
=
Math
.
max
(
labelHeight
,
info
.
height
);
}
...
...
@@ -1734,6 +1734,8 @@ Licensed under the MIT license.
axis
.
delta
=
delta
;
axis
.
tickDecimals
=
Math
.
max
(
0
,
maxDec
!=
null
?
maxDec
:
dec
);
axis
.
tickSize
=
opts
.
tickSize
||
size
;
// grafana addition
axis
.
scaledDecimals
=
axis
.
tickDecimals
-
Math
.
floor
(
Math
.
log
(
axis
.
tickSize
)
/
Math
.
LN10
);
// Time mode was moved to a plug-in in 0.8, and since so many people use it
// we'll add an especially friendly reminder to make sure they included it.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment