editor: allow very narrow sizes

This commit is contained in:
jean-emmanuel 2016-12-12 12:08:06 +01:00
parent 4a6b0faa93
commit d0f0d41dd5
2 changed files with 1 additions and 2 deletions

View file

@ -218,7 +218,7 @@ var editObject = function(container, data, refresh){
},
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-e')) data.width = Math.round((Math.max(ui.size.width,30)) / (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)
},
grid: [GRIDWIDTH * PXSCALE, GRIDWIDTH * PXSCALE]

View file

@ -236,7 +236,6 @@
}
.ui-helper {
min-width:30rem!important;
min-height:30rem!important;
z-index: 12!important;
opacity: 1!important;