mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 13:36:45 +00:00
#243 - "File > new" will auto fit to screen
This commit is contained in:
parent
e6901014c6
commit
67aae07781
@ -66,7 +66,7 @@ class File_new_class {
|
||||
this.POP.show(settings);
|
||||
}
|
||||
|
||||
new_handler(response) {
|
||||
async new_handler(response) {
|
||||
var width = parseFloat(response.width);
|
||||
var height = parseFloat(response.height);
|
||||
var resolution_type = response.resolution_type;
|
||||
@ -110,6 +110,12 @@ class File_new_class {
|
||||
])
|
||||
);
|
||||
|
||||
//sleep, lets wait till DOM is finished
|
||||
await new Promise(r => setTimeout(r, 10));
|
||||
|
||||
//fit to screen?
|
||||
this.Base_gui.GUI_preview.zoom_auto(true);
|
||||
|
||||
// Save transparency
|
||||
if (transparency) {
|
||||
this.Helper.setCookie('transparency', 1);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user