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
2e892074
Commit
2e892074
authored
Sep 21, 2012
by
Julien Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix makeCanvas() for IE after Retina feature introduced in
179d2e1d
parent
3b26866e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
jquery.flot.js
jquery.flot.js
+5
-5
No files found.
jquery.flot.js
View file @
2e892074
...
@@ -737,6 +737,11 @@
...
@@ -737,6 +737,11 @@
var
c
=
document
.
createElement
(
'canvas'
);
var
c
=
document
.
createElement
(
'canvas'
);
c
.
className
=
cls
;
c
.
className
=
cls
;
if
(
!
skipPositioning
)
$
(
c
).
css
({
position
:
'absolute'
,
left
:
0
,
top
:
0
});
$
(
c
).
appendTo
(
placeholder
);
if
(
!
c
.
getContext
)
// excanvas hack
if
(
!
c
.
getContext
)
// excanvas hack
c
=
window
.
G_vmlCanvasManager
.
initElement
(
c
);
c
=
window
.
G_vmlCanvasManager
.
initElement
(
c
);
...
@@ -754,11 +759,6 @@
...
@@ -754,11 +759,6 @@
c
.
style
.
width
=
canvasWidth
+
"px"
;
c
.
style
.
width
=
canvasWidth
+
"px"
;
c
.
style
.
height
=
canvasHeight
+
"px"
;
c
.
style
.
height
=
canvasHeight
+
"px"
;
if
(
!
skipPositioning
)
$
(
c
).
css
({
position
:
'absolute'
,
left
:
0
,
top
:
0
});
$
(
c
).
appendTo
(
placeholder
);
// Save the context so we can reset in case we get replotted
// Save the context so we can reset in case we get replotted
cctx
.
save
();
cctx
.
save
();
...
...
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