mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
layout demo: further bugfixing in IE; set handle for draggables to be consistent with sortables
This commit is contained in:
parent
b48b8db2d1
commit
de82e2f024
@ -1,3 +1,4 @@
|
|||||||
|
body { height: 100% }
|
||||||
.ui-sortable h2 { top: -4px; }
|
.ui-sortable h2 { top: -4px; }
|
||||||
|
|
||||||
#overlay #preloader img { margin-top: 11px; }
|
#overlay #preloader img { margin-top: 11px; }
|
@ -1,6 +1,4 @@
|
|||||||
html, body { height: 100% }
|
body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; padding:30px 0 0 30px; }
|
||||||
|
|
||||||
body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; overflow:hidden; padding:30px 0 0 30px; }
|
|
||||||
h1 { font-size:18px; margin:0 0 20px; }
|
h1 { font-size:18px; margin:0 0 20px; }
|
||||||
a { color:#FFF; }
|
a { color:#FFF; }
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
(function($){
|
(function($){
|
||||||
function updateUpDown(sortable) {
|
function updateUpDown(sortable) {
|
||||||
console.log(this, sortable)
|
|
||||||
$('dl:not(.ui-sortable-helper)', sortable)
|
$('dl:not(.ui-sortable-helper)', sortable)
|
||||||
.removeClass('first').removeClass('last')
|
.removeClass('first').removeClass('last')
|
||||||
.find('.up, .down').removeClass('disabled').end()
|
.find('.up, .down').removeClass('disabled').end()
|
||||||
@ -98,14 +97,17 @@
|
|||||||
});
|
});
|
||||||
$('#components > dl').draggable({
|
$('#components > dl').draggable({
|
||||||
connectToSortable: $els.not("#trashcan"),
|
connectToSortable: $els.not("#trashcan"),
|
||||||
helper: 'clone'
|
helper: 'clone',
|
||||||
|
handle: 'dt'
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
|
||||||
$(window).bind('load',function(){
|
$(window).bind('load',function(){
|
||||||
setTimeout(function(){
|
setTimeout(function(){
|
||||||
|
// fixes the weird scrolling in IE while killing the fade
|
||||||
|
$(document.body).css("height", "auto")
|
||||||
$('#overlay').fadeOut(function(){
|
$('#overlay').fadeOut(function(){
|
||||||
$('body').css('overflow', 'auto');
|
$(this).remove();
|
||||||
});
|
});
|
||||||
}, 500);
|
}, 500);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user