Resize DHTML (Method)

Revision as of 12:56, 29 October 2023 by Pongo02 (talk | contribs) (Created page with "<onlyinclude>{{Method|name = Resize |arguments = Integer '''Width''', Integer '''Height''' |description = Changes the size of the window. |object = HtmlWindow }}</onlyinclude> {{clear floats}} {{Example|This code will create and spam resize a DHTML window 1000 times: <syntaxhighlight lang="lua"> local HtmlService = game:service("HtmlService") local htmlWindow = HtmlService:NewWindow() htmlWindow:Show() for i = 0, 1000 do htmlWindow:Resize(math.floor(math.ran...")
(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 spam resize a DHTML window 1000 times:
local HtmlService = game:service("HtmlService")
local htmlWindow = HtmlService:NewWindow()

htmlWindow:Show()

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