fix: notes editor shows up halfway off the screen

This commit is contained in:
Azgaar 2023-01-23 00:11:20 +04:00
parent dd56c7e433
commit 16e0aef2fb
5 changed files with 4 additions and 13 deletions

View file

@ -1,9 +0,0 @@
Azgaar's Fantasy Map Generator
Developed by Azgaar (azgaar.fmg@yandex.com) and contributors
Minsk, 2017-2021. MIT License
https://github.com/Azgaar/Fantasy-Map-Generator
To run the tool unzip ALL files and open index.html in browser

View file

@ -2045,6 +2045,7 @@ div.textual span,
}
#notesLegend {
width: auto;
height: 87%;
outline: 0;
overflow-y: auto;

View file

@ -7886,7 +7886,7 @@
<script defer src="modules/ui/relief-editor.js"></script>
<script defer src="modules/ui/burg-editor.js"></script>
<script defer src="modules/ui/units-editor.js"></script>
<script defer src="modules/ui/notes-editor.js"></script>
<script defer src="modules/ui/notes-editor.js?v=1.89.03"></script>
<script defer src="modules/ui/diplomacy-editor.js?v=1.88.04"></script>
<script defer src="modules/ui/zones-editor.js"></script>
<script defer src="modules/ui/burgs-overview.js"></script>

View file

@ -42,12 +42,11 @@ function editNotes(id, name) {
$("#notesEditor").dialog({
title: "Notes Editor",
width: "minmax(80vw, 540px)",
width: window.innerWidth * 0.8,
height: window.innerHeight * 0.75,
position: {my: "center", at: "center", of: "svg"},
close: removeEditor
});
$("[aria-describedby='notesEditor']").css("top", "10vh");
if (modules.editNotes) return;
modules.editNotes = true;

View file

@ -1,7 +1,7 @@
"use strict";
// version and caching control
const version = "1.89.02"; // generator version, update each time
const version = "1.89.03"; // generator version, update each time
{
document.title += " v" + version;