浏览代码

Fix minimize which broke again after previous CSS changes

JC Brand 11 年之前
父节点
当前提交
b189e6dfcb
共有 2 个文件被更改,包括 6 次插入2 次删除
  1. 0 2
      dragresize/dragresize_commented.js
  2. 6 0
      mockup.html

+ 0 - 2
dragresize/dragresize_commented.js

@@ -70,7 +70,6 @@ function DragResize(myName, config) {
         handles: ['tl', 'tm', 'tr',
         'ml', 'mr', 'bl', 'bm', 'br'],   // Array of drag handles: top/mid/bot/right.
         isElement: null,                 // Function ref to test for an element.
-        isHandle: null,                  // Function ref to test for move handle.
         element: null,                   // The currently selected element.
         handle: null,                    // Active handle reference of the element.
         minWidth: 10, minHeight: 10,     // Minimum pixel size of elements.
@@ -155,7 +154,6 @@ DragResize.prototype.mouseDown = function(e) {
         while (elm) {
             // Loop up the DOM looking for matching elements. Remember one if found.
             if (elm.className) {
-                if (!newHandle && (hRE.test(elm.className) || isHandle(elm))) newHandle = elm;
                 if (isElement(elm)) { newElement = elm; break }
             }
             elm = elm.parentNode;

+ 6 - 0
mockup.html

@@ -487,6 +487,12 @@ $(document).ready(function () {
             } else {
                 $grandparent.find('div.chat-content').slideToggle(300);
             }
+            var flyout = $grandparent.find('.box-flyout')[0];
+            if (flyout.style.height == 'auto') {
+                flyout.style.height = '324px';
+            } else {
+                flyout.style.height = 'auto';
+            }
             $(ev.target).parent().parent().find('form.sendXMPPMessage').toggle();
         });