From 49f3c51b0a9b134c8337f029d29d9678df28492f Mon Sep 17 00:00:00 2001 From: jean-emmanuel Date: Sun, 16 Jul 2017 22:41:19 +0200 Subject: [PATCH] editor: remove 30px min height --- src/browser/js/app/editor/edit-objects.js | 2 +- src/browser/scss/_editor.scss | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/browser/js/app/editor/edit-objects.js b/src/browser/js/app/editor/edit-objects.js index 5f11cf74..ad76f00b 100644 --- a/src/browser/js/app/editor/edit-objects.js +++ b/src/browser/js/app/editor/edit-objects.js @@ -244,7 +244,7 @@ var editObject = function(container, data, refresh){ ui.size.width = Math.round(ui.size.width / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH * PXSCALE }, stop: function( event, ui ) { - if (handleTarget.hasClass('ui-resizable-se') || handleTarget.hasClass('ui-resizable-s')) data.height = Math.round((Math.max(ui.size.height,30)) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH + if (handleTarget.hasClass('ui-resizable-se') || handleTarget.hasClass('ui-resizable-s')) data.height = Math.round((Math.max(ui.size.height,1)) / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH if (handleTarget.hasClass('ui-resizable-se') || handleTarget.hasClass('ui-resizable-e')) data.width = Math.round(ui.size.width / (GRIDWIDTH * PXSCALE)) * GRIDWIDTH updateDom(container,data) }, diff --git a/src/browser/scss/_editor.scss b/src/browser/scss/_editor.scss index cce4c8f8..71d0a31e 100644 --- a/src/browser/scss/_editor.scss +++ b/src/browser/scss/_editor.scss @@ -344,7 +344,6 @@ } .ui-helper { - min-height:30rem!important; z-index: 12!important; opacity: 1!important; &:before {