4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../resources/prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../resources/prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js">// private - DD implementation for Panels
19 Ext.define('Ext.panel.DD', {
20 extend: 'Ext.dd.DragSource',
21 requires: ['Ext.panel.Proxy'],
23 constructor : function(panel, cfg){
25 this.dragData = {panel: panel};
26 this.proxy = Ext.create('Ext.panel.Proxy', panel, cfg);
28 this.callParent([panel.el, cfg]);
30 Ext.defer(function() {
31 var header = panel.header,
35 this.setHandleElId(header.id);
38 el.setStyle('cursor', 'move');
43 showFrame: Ext.emptyFn,
44 startDrag: Ext.emptyFn,
45 b4StartDrag: function(x, y) {
48 b4MouseDown: function(e) {
51 this.autoOffset(x, y);
53 onInitDrag : function(x, y){
54 this.onStartDrag(x, y);
57 createFrame : Ext.emptyFn,
58 getDragEl : function(e){
59 return this.proxy.ghost.el.dom;
61 endDrag : function(e){
63 this.panel.saveState();
66 autoOffset : function(x, y) {