From 7fb9b03ee43f4d1725a6058c395144353037e1d5 Mon Sep 17 00:00:00 2001 From: Evolvedexperiment Date: Thu, 17 Oct 2019 16:20:43 +0000 Subject: [PATCH] Update to Azgaar latest, fixes for updates and dialog border --- modules/ui/heightmap-editor.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/ui/heightmap-editor.js b/modules/ui/heightmap-editor.js index a1d9c35e..3e11c4f7 100644 --- a/modules/ui/heightmap-editor.js +++ b/modules/ui/heightmap-editor.js @@ -375,9 +375,7 @@ function getHeight(h) { mockHeightmap(); updateHistory(); - hideCircle(); - update3dpreview(_3dpreview); - showCircle(); + draw3dPreview(); } // draw or update heightmap @@ -1252,14 +1250,14 @@ function getHeight(h) { }).on('dialogclose', close3dPreview); var titleBar = document.getElementById("_3dpreviewEditor").previousSibling; - $("#_3dpreviewEditor").dialog( "option", "height", _3dpreview.height + titleBar.clientHeight + 2 ); + $("#_3dpreviewEditor").dialog( "option", "height", _3dpreview.height + titleBar.clientHeight + 3); $("#_3dpreviewEditor").on("dialogresizestop", function(event, ui) { var titleBar = document.getElementById("_3dpreviewEditor").previousSibling; var _3dpreview = document.getElementById("_3dpreview"); _3dpreview.width = ui.size.width; - _3dpreview.height = (ui.size.height - titleBar.clientHeight); + _3dpreview.height = (ui.size.height - (titleBar.clientHeight + 3)); hideCircle(); update3dpreview(_3dpreview); showCircle();