mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
Resizable: Apply zIndex option to all handles. Partial Fix for #7960- Modal dialog does not disable resizables on the page.
This commit is contained in:
parent
d783766f90
commit
6150abae49
@ -187,4 +187,13 @@ test("ui-resizable-nw { handles: 'all', minWidth: 60, minHeight: 60, maxWidth: 1
|
|||||||
equal( target.height(), 100, "compare maxHeight" );
|
equal( target.height(), 100, "compare maxHeight" );
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test("zIndex, applied to all handles", function() {
|
||||||
|
expect(8);
|
||||||
|
|
||||||
|
var target = $('<div></div>').resizable({ handles: 'all', zIndex: 100 });
|
||||||
|
target.children( '.ui-resizable-handle' ).each( function( index, handle ) {
|
||||||
|
equals( $( handle ).css( 'zIndex' ), 100, 'compare zIndex' );
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
})(jQuery);
|
})(jQuery);
|
||||||
|
2
themes/base/jquery.ui.resizable.css
vendored
2
themes/base/jquery.ui.resizable.css
vendored
@ -8,7 +8,7 @@
|
|||||||
* http://docs.jquery.com/UI/Resizable#theming
|
* http://docs.jquery.com/UI/Resizable#theming
|
||||||
*/
|
*/
|
||||||
.ui-resizable { position: relative;}
|
.ui-resizable { position: relative;}
|
||||||
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block; }
|
.ui-resizable-handle { position: absolute;font-size: 0.1px; display: block; }
|
||||||
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
||||||
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
||||||
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
||||||
|
5
ui/jquery.ui.resizable.js
vendored
5
ui/jquery.ui.resizable.js
vendored
@ -99,9 +99,8 @@ $.widget("ui.resizable", $.ui.mouse, {
|
|||||||
var handle = $.trim(n[i]), hname = 'ui-resizable-'+handle;
|
var handle = $.trim(n[i]), hname = 'ui-resizable-'+handle;
|
||||||
var axis = $('<div class="ui-resizable-handle ' + hname + '"></div>');
|
var axis = $('<div class="ui-resizable-handle ' + hname + '"></div>');
|
||||||
|
|
||||||
// increase zIndex of sw, se, ne, nw axis
|
// Apply zIndex to all handles - see #7960
|
||||||
//TODO : this modifies original option
|
axis.css({ zIndex: o.zIndex });
|
||||||
if(/sw|se|ne|nw/.test(handle)) axis.css({ zIndex: ++o.zIndex });
|
|
||||||
|
|
||||||
//TODO : What's going on here?
|
//TODO : What's going on here?
|
||||||
if ('se' == handle) {
|
if ('se' == handle) {
|
||||||
|
Loading…
Reference in New Issue
Block a user