Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
F
flot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HS-public
flot
Commits
5a606968
Commit
5a606968
authored
May 16, 2011
by
Ole Laursen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix calculation of plot offset to round values to prevent another source of blurry borders
parent
f5efa0d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
NEWS.txt
NEWS.txt
+2
-0
jquery.flot.js
jquery.flot.js
+2
-2
No files found.
NEWS.txt
View file @
5a606968
...
...
@@ -31,6 +31,8 @@ Bug fixes
- Fix problem with event clicking and hovering in IE 8 by updating
Excanvas and removing previous work-around (test case by Ara
Anjargolian).
- Fix issues with blurry 1px border when some measures aren't integer
(reported by Ara Anjargolian).
Flot 0.7
...
...
jquery.flot.js
View file @
5a606968
...
...
@@ -1002,7 +1002,7 @@
minMargin
=
Math
.
max
(
minMargin
,
2
*
(
series
[
i
].
points
.
radius
+
series
[
i
].
points
.
lineWidth
/
2
));
}
margins
.
x
=
margins
.
y
=
minMargin
;
margins
.
x
=
margins
.
y
=
Math
.
ceil
(
minMargin
)
;
// check axis labels, note we don't check the actual
// labels but instead use the overall width/height to not
...
...
@@ -1010,7 +1010,7 @@
$
.
each
(
allAxes
(),
function
(
_
,
axis
)
{
var
dir
=
axis
.
direction
;
if
(
axis
.
reserveSpace
)
margins
[
dir
]
=
Math
.
max
(
margins
[
dir
],
(
dir
==
"x"
?
axis
.
labelWidth
:
axis
.
labelHeight
)
/
2
);
margins
[
dir
]
=
Math
.
ceil
(
Math
.
max
(
margins
[
dir
],
(
dir
==
"x"
?
axis
.
labelWidth
:
axis
.
labelHeight
)
/
2
)
);
});
plotOffset
.
left
=
Math
.
max
(
margins
.
x
,
plotOffset
.
left
);
...
...
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