2012-06-21 43 views

回答

2

Jquery可拖動事件dragstart向上冒泡DOM樹和水平元素接管dragstart事件。

我已經採取了你的榜樣,並簡單地從#horizo​​ntal

$(document).ready(function(e) 
{ 
    var win_width = $(document).width(); 
    var win_height = $(document).height(); 
    var top_pane_height = 50; 
    var bottom_pane_height = 50; 
    var middle_pane_height = win_height - (top_pane_height + bottom_pane_height); 
    var kendoElement = $("#horizontal").css('height', middle_pane_height).kendoSplitter(
    { 
     orientation:'horizontal', 
     panes: 
     [ 
      { size: "18%", collapsed: false, collapsible: true, resizable: false}, 
      { collapsible: false, resizable: false }, 
      { size: "18%", collapsed: false, collapsible: true, resizable: false} 
     ] 
    }); 
    $("#panelBar").kendoPanelBar(); 
    var draggable = $('#center-pane').find(".draggable").draggable({stack: "#center-pane"}); 
    kendoElement.unbind('dragstart'); 
});​ 
解開事件
相關問題