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
69e4f253
Commit
69e4f253
authored
Oct 05, 2010
by
Colin Snover
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update $.fn.animate to restore overflow-x and overflow-y separately. Fixes #7111.
parent
0cdcef5b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
effects.js
src/effects.js
+7
-2
No files found.
src/effects.js
View file @
69e4f253
...
@@ -133,7 +133,10 @@ jQuery.fn.extend({
...
@@ -133,7 +133,10 @@ jQuery.fn.extend({
if
(
(
p
===
"height"
||
p
===
"width"
)
)
{
if
(
(
p
===
"height"
||
p
===
"width"
)
)
{
// Make sure that nothing sneaks out
// Make sure that nothing sneaks out
opt
.
overflow
=
this
.
style
.
overflow
;
// Record all 3 overflow attributes because IE does not
// change the overflow attribute when overflowX and
// overflowY are set to the same value
opt
.
overflow
=
[
this
.
style
.
overflow
,
this
.
style
.
overflowX
,
this
.
style
.
overflowY
];
// Set display property to inline-block for height/width
// Set display property to inline-block for height/width
// animations on inline elements that are having width/height
// animations on inline elements that are having width/height
...
@@ -400,7 +403,9 @@ jQuery.fx.prototype = {
...
@@ -400,7 +403,9 @@ jQuery.fx.prototype = {
if
(
done
)
{
if
(
done
)
{
// Reset the overflow
// Reset the overflow
if
(
this
.
options
.
overflow
!=
null
)
{
if
(
this
.
options
.
overflow
!=
null
)
{
this
.
elem
.
style
.
overflow
=
this
.
options
.
overflow
;
this
.
elem
.
style
.
overflow
=
this
.
options
.
overflow
[
0
];
this
.
elem
.
style
.
overflowX
=
this
.
options
.
overflow
[
1
];
this
.
elem
.
style
.
overflowY
=
this
.
options
.
overflow
[
2
];
}
}
// Hide the element if the "hide" operation was done
// Hide the element if the "hide" operation was done
...
...
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