mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-22 03:51:23 +01:00
Update to Azgaar latest, fixes for updates and dialog border
This commit is contained in:
parent
9de636c722
commit
7fb9b03ee4
1 changed files with 3 additions and 5 deletions
|
|
@ -375,9 +375,7 @@ function getHeight(h) {
|
||||||
|
|
||||||
mockHeightmap();
|
mockHeightmap();
|
||||||
updateHistory();
|
updateHistory();
|
||||||
hideCircle();
|
draw3dPreview();
|
||||||
update3dpreview(_3dpreview);
|
|
||||||
showCircle();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// draw or update heightmap
|
// draw or update heightmap
|
||||||
|
|
@ -1252,14 +1250,14 @@ function getHeight(h) {
|
||||||
}).on('dialogclose', close3dPreview);
|
}).on('dialogclose', close3dPreview);
|
||||||
|
|
||||||
var titleBar = document.getElementById("_3dpreviewEditor").previousSibling;
|
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) {
|
$("#_3dpreviewEditor").on("dialogresizestop", function(event, ui) {
|
||||||
var titleBar = document.getElementById("_3dpreviewEditor").previousSibling;
|
var titleBar = document.getElementById("_3dpreviewEditor").previousSibling;
|
||||||
|
|
||||||
var _3dpreview = document.getElementById("_3dpreview");
|
var _3dpreview = document.getElementById("_3dpreview");
|
||||||
_3dpreview.width = ui.size.width;
|
_3dpreview.width = ui.size.width;
|
||||||
_3dpreview.height = (ui.size.height - titleBar.clientHeight);
|
_3dpreview.height = (ui.size.height - (titleBar.clientHeight + 3));
|
||||||
hideCircle();
|
hideCircle();
|
||||||
update3dpreview(_3dpreview);
|
update3dpreview(_3dpreview);
|
||||||
showCircle();
|
showCircle();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue