{"name":"BIS_fnc_ctrlFitToTextHeight","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","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Resize structured text control to fit its text height.","syntaxes":[{"syntax":"[control,offset,time] call BIS_fnc_ctrlFitToTextHeight","params":[{"name":"control","type":"Control","description":"the control which should be scaled","type_expr":"Control"},{"name":"offset","type":"Number","optional":true,"default":"0","description":"offset","type_expr":"Number","text":"offset: Number - (Optional, default 0) offset"},{"name":"time","type":"Number","optional":true,"default":"0","description":"commit time","type_expr":"Number","text":"time: Number - (Optional, default 0) commit time"}],"returns":{"type":"Number","type_expr":"Number","description":"text height"}}],"examples":[{"code":["private _height = [_ctrl, 1.5, 3] call BIS_fnc_ctrlFitToTextHeight;"]}],"see_also":["ctrlCommitted","ctrlSetPosition","ctrlSetFade"]}