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
07c8a9b2
Commit
07c8a9b2
authored
Mar 21, 2012
by
louisremi
Committed by
Dave Methvin
Mar 21, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #11469. Exclude margins from the negative property check.
parent
f40c862d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
effects.js
src/effects.js
+6
-3
No files found.
src/effects.js
View file @
07c8a9b2
...
@@ -636,9 +636,12 @@ jQuery.extend( jQuery.fx, {
...
@@ -636,9 +636,12 @@ jQuery.extend( jQuery.fx, {
// Ensure props that can't be negative don't go there on undershoot easing
// Ensure props that can't be negative don't go there on undershoot easing
jQuery
.
each
(
fxAttrs
.
concat
.
apply
(
[],
fxAttrs
),
function
(
i
,
prop
)
{
jQuery
.
each
(
fxAttrs
.
concat
.
apply
(
[],
fxAttrs
),
function
(
i
,
prop
)
{
// exclude marginTop, marginLeft, marginBottom and marginRight from this list
if
(
prop
.
indexOf
(
"margin"
)
)
{
jQuery
.
fx
.
step
[
prop
]
=
function
(
fx
)
{
jQuery
.
fx
.
step
[
prop
]
=
function
(
fx
)
{
jQuery
.
style
(
fx
.
elem
,
prop
,
Math
.
max
(
0
,
fx
.
now
)
+
fx
.
unit
);
jQuery
.
style
(
fx
.
elem
,
prop
,
Math
.
max
(
0
,
fx
.
now
)
+
fx
.
unit
);
};
};
}
});
});
if
(
jQuery
.
expr
&&
jQuery
.
expr
.
filters
)
{
if
(
jQuery
.
expr
&&
jQuery
.
expr
.
filters
)
{
...
...
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