Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
J
jquery
Project
Project
Details
Activity
Releases
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
夏彬
jquery
Commits
f4970c03
Commit
f4970c03
authored
Jan 26, 2014
by
Michał Gołębiowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Css: Fix the reliableMarginRight test in oldIE.
This fixes an error introduced by the previous commit.
parent
4cbb1a00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
support.js
src/css/support.js
+7
-3
No files found.
src/css/support.js
View file @
f4970c03
...
@@ -107,7 +107,11 @@ define([
...
@@ -107,7 +107,11 @@ define([
},
},
reliableMarginRight
:
function
()
{
reliableMarginRight
:
function
()
{
var
body
,
container
,
div
,
marginDiv
,
reliableMarginRightVal
;
var
body
,
container
,
div
,
marginDiv
,
// Support: IE<9.
// IE should pass the test but we're using getComputedStyle
// to compute it so just return true if the method is not present.
reliableMarginRightVal
=
true
;
// Use window.getComputedStyle because jsdom on node.js will break without it.
// Use window.getComputedStyle because jsdom on node.js will break without it.
if
(
window
.
getComputedStyle
)
{
if
(
window
.
getComputedStyle
)
{
...
@@ -136,9 +140,9 @@ define([
...
@@ -136,9 +140,9 @@ define([
!
parseFloat
(
(
window
.
getComputedStyle
(
marginDiv
,
null
)
||
{}
).
marginRight
);
!
parseFloat
(
(
window
.
getComputedStyle
(
marginDiv
,
null
)
||
{}
).
marginRight
);
body
.
removeChild
(
container
);
body
.
removeChild
(
container
);
return
reliableMarginRightVal
;
}
}
return
reliableMarginRightVal
;
}
}
});
});
...
...
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