Skip to content
Permalink
Browse files

layout demo: further bugfixing in IE; set handle for draggables to be…

… consistent with sortables
  • Loading branch information
jzaefferer committed Sep 3, 2008
1 parent b48b8db commit de82e2f02407a608d7ec21005a69f135902ea632
Showing with 7 additions and 6 deletions.
  1. +1 −0 demos/real-world/layout/demo-ie.css
  2. +1 −3 demos/real-world/layout/demo.css
  3. +5 −3 demos/real-world/layout/demo.js
@@ -1,3 +1,4 @@
body { height: 100% }
.ui-sortable h2 { top: -4px; }

#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; overflow:hidden; padding:30px 0 0 30px; }
body { background-color:#666; color:#FFF; font:11px/1.5 Arial, sans-serif; margin:0; padding:30px 0 0 30px; }
h1 { font-size:18px; margin:0 0 20px; }
a { color:#FFF; }

@@ -1,6 +1,5 @@
(function($){
function updateUpDown(sortable) {
console.log(this, sortable)
$('dl:not(.ui-sortable-helper)', sortable)
.removeClass('first').removeClass('last')
.find('.up, .down').removeClass('disabled').end()
@@ -98,14 +97,17 @@
});
$('#components > dl').draggable({
connectToSortable: $els.not("#trashcan"),
helper: 'clone'
helper: 'clone',
handle: 'dt'
})
});

$(window).bind('load',function(){
setTimeout(function(){
// fixes the weird scrolling in IE while killing the fade
$(document.body).css("height", "auto")
$('#overlay').fadeOut(function(){
$('body').css('overflow', 'auto');
$(this).remove();
});
}, 500);
});

0 comments on commit de82e2f

Please sign in to comment.
You can’t perform that action at this time.