Resize DHTML (Method)

Revision as of 17:06, 10 November 2023 by ObsidianPLG (talk | contribs) (forgot the space, woops)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Resize( Integer Width, Integer Height )
Returns nil
Description: Changes the size of the window.
Member of: HtmlWindow


Example
This code will create and then spam resize a DHTML window 1000 times:
local HtmlService = game:service("HtmlService")
local htmlWindow = HtmlService:NewWindow()

htmlWindow:Show()

for i = 0, 1000 do
    wait(math.random(1, 2))
	htmlWindow:Resize(math.random(100, 300), math.random(100, 300))
end