From b189e6dfcb407e7e5c6eea5039e4f4031d865b78 Mon Sep 17 00:00:00 2001 From: JC Brand Date: Wed, 22 Jan 2014 17:45:16 +0200 Subject: [PATCH] Fix minimize which broke again after previous CSS changes --- dragresize/dragresize_commented.js | 2 -- mockup.html | 6 ++++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dragresize/dragresize_commented.js b/dragresize/dragresize_commented.js index 2fc90a853..18b3fee29 100644 --- a/dragresize/dragresize_commented.js +++ b/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; diff --git a/mockup.html b/mockup.html index d59428d85..d697cda3c 100644 --- a/mockup.html +++ b/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(); });