mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Effects: set right/bottom to 'auto' so effects work with dir=rtl. Fixed #6736 - Bug in slide effect when dir=rtl and has position.right.
This commit is contained in:
parent
b5601cc9f9
commit
b475ae74df
2
ui/jquery.effects.blind.js
vendored
2
ui/jquery.effects.blind.js
vendored
@ -17,7 +17,7 @@ $.effects.blind = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left'];
|
var el = $(this), props = ['position','top','bottom','left','right'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
||||||
|
2
ui/jquery.effects.bounce.js
vendored
2
ui/jquery.effects.bounce.js
vendored
@ -17,7 +17,7 @@ $.effects.bounce = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left'];
|
var el = $(this), props = ['position','top','bottom','left','right'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
|
||||||
|
2
ui/jquery.effects.clip.js
vendored
2
ui/jquery.effects.clip.js
vendored
@ -17,7 +17,7 @@ $.effects.clip = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left','height','width'];
|
var el = $(this), props = ['position','top','bottom','left','right','height','width'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
||||||
|
2
ui/jquery.effects.core.js
vendored
2
ui/jquery.effects.core.js
vendored
@ -390,7 +390,7 @@ $.extend($.effects, {
|
|||||||
props[pos] = 'auto';
|
props[pos] = 'auto';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
element.css({position: 'relative', top: 0, left: 0 });
|
element.css({position: 'relative', top: 0, left: 0, right: 'auto', bottom: 'auto' });
|
||||||
}
|
}
|
||||||
|
|
||||||
return wrapper.css(props).show();
|
return wrapper.css(props).show();
|
||||||
|
2
ui/jquery.effects.drop.js
vendored
2
ui/jquery.effects.drop.js
vendored
@ -17,7 +17,7 @@ $.effects.drop = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left','opacity'];
|
var el = $(this), props = ['position','top','bottom','left','right','opacity'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
||||||
|
2
ui/jquery.effects.fold.js
vendored
2
ui/jquery.effects.fold.js
vendored
@ -17,7 +17,7 @@ $.effects.fold = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left'];
|
var el = $(this), props = ['position','top','bottom','left','right'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'hide'); // Set Mode
|
||||||
|
4
ui/jquery.effects.scale.js
vendored
4
ui/jquery.effects.scale.js
vendored
@ -84,8 +84,8 @@ $.effects.size = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left','width','height','overflow','opacity'];
|
var el = $(this), props = ['position','top','bottom','left','right','width','height','overflow','opacity'];
|
||||||
var props1 = ['position','top','left','overflow','opacity']; // Always restore
|
var props1 = ['position','top','bottom','left','right','overflow','opacity']; // Always restore
|
||||||
var props2 = ['width','height','overflow']; // Copy for children
|
var props2 = ['width','height','overflow']; // Copy for children
|
||||||
var cProps = ['fontSize'];
|
var cProps = ['fontSize'];
|
||||||
var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
|
var vProps = ['borderTopWidth', 'borderBottomWidth', 'paddingTop', 'paddingBottom'];
|
||||||
|
2
ui/jquery.effects.shake.js
vendored
2
ui/jquery.effects.shake.js
vendored
@ -17,7 +17,7 @@ $.effects.shake = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left'];
|
var el = $(this), props = ['position','top','bottom','left','right'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'effect'); // Set Mode
|
||||||
|
2
ui/jquery.effects.slide.js
vendored
2
ui/jquery.effects.slide.js
vendored
@ -17,7 +17,7 @@ $.effects.slide = function(o) {
|
|||||||
return this.queue(function() {
|
return this.queue(function() {
|
||||||
|
|
||||||
// Create element
|
// Create element
|
||||||
var el = $(this), props = ['position','top','left'];
|
var el = $(this), props = ['position','top','bottom','left','right'];
|
||||||
|
|
||||||
// Set options
|
// Set options
|
||||||
var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
|
var mode = $.effects.setMode(el, o.options.mode || 'show'); // Set Mode
|
||||||
|
Loading…
Reference in New Issue
Block a user