mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-28 23:51:17 +01:00
Clean up runtime errors, fix VueUIs opening offscreen (#14025)
* Clean up runtime errors, fix VueUIs opening offscreen * woops * myazaki is based
This commit is contained in:
@@ -90,7 +90,13 @@ main ui datum.
|
||||
|
||||
var/params = "window=[windowid];file=[windowid];titlebar=0;can_resize=0;"
|
||||
if(width && height)
|
||||
params += "size=[width]x[height];"
|
||||
var/winsize = winget(user, "mapwindow", "size")
|
||||
var/map_size = splittext(winsize, "x")
|
||||
var/screen_height = text2num(map_size[2])
|
||||
if(height > screen_height)
|
||||
params += "size=[width]x[max(screen_height - 100, 240)];"
|
||||
else
|
||||
params += "size=[width]x[height];"
|
||||
send_resources_and_assets(user.client, load_asset)
|
||||
user << browse(generate_html(load_asset?.css_tag()), params)
|
||||
winset(user, "mapwindow.map", "focus=true")
|
||||
|
||||
Reference in New Issue
Block a user