{"name":"BIS_fnc_ctrlFitToTextHeight","operator":null,"title":"BIS fnc ctrlFitToTextHeight","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_ctrlFitToTextHeight","revid":349284,"updated":"2023-11-08T14:51:14Z","groups":["GUI"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.00"}],"since":{"game":"arma3","name":"Arma 3","version":"1.00"},"arma3_since":"1.00","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Resize structured text control to fit its text height.","syntaxes":[{"syntax":"[control,offset,time] call BIS_fnc_ctrlFitToTextHeight","since":null,"effect":null,"exec":null,"params":[{"name":"control","type":"Control","optional":false,"default":null,"description":"the control which should be scaled","types":["Control"],"since":null,"text":"control: Control - the control which should be scaled"},{"name":"offset","type":"Number","optional":true,"default":"0","description":"offset","types":["Number"],"since":null,"text":"offset: Number - (Optional, default 0) offset"},{"name":"time","type":"Number","optional":true,"default":"0","description":"commit time","types":["Number"],"since":null,"text":"time: Number - (Optional, default 0) commit time"}],"returns":{"type":"Number","types":["Number"],"description":"text height","text":"Number - text height"}}],"examples":[{"text":"```sqf\nprivate _height = [_ctrl, 1.5, 3] call BIS_fnc_ctrlFitToTextHeight;\n```","code":["private _height = [_ctrl, 1.5, 3] call BIS_fnc_ctrlFitToTextHeight;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["ctrlCommitted","ctrlSetPosition","ctrlSetFade"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: GUI","Functions","Introduced with Arma 3 version 1.00"],"docblock":null,"filled_from_docblock":[]}