layout demo: further bugfixing in IE; set handle for draggables to be consistent with sortables

This commit is contained in:
Jörn Zaefferer 2008-09-03 16:06:25 +00:00
parent b48b8db2d1
commit de82e2f024
3 changed files with 7 additions and 6 deletions

View File

@ -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; }

View File

@ -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; }

View File

@ -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);
}); });