WoW:API Region SetHeight: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
 
m (Move page script moved page API Region SetHeight to API Region SetHeight without leaving a redirect)
 
(4 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<center>'''SetHeight''' ''-Documentation by [[AeroBrain]]-''</center>
{{widgetmethod}}


Sets the height of a frame-based object.
Sets the desired height of a frame-based object.


  obj:SetHeight(''height'');
  obj:SetHeight(''height'');
Line 8: Line 8:
;''Arguments''
;''Arguments''


; height : The height to set the frame-based object to.
; height : The desired height to set the frame-based object to (use 0 to clear the desired height). Note that a frame whose height is determined based on its anchors will not use this height.


----
----
Line 27: Line 27:


: Sets the height of a frame-based object.
: Sets the height of a frame-based object.
----
{{Template:WoW API}}

Latest revision as of 04:47, 15 August 2023

Widget API ← Region < SetHeight

Sets the desired height of a frame-based object.

obj:SetHeight(height);

Arguments
height
The desired height to set the frame-based object to (use 0 to clear the desired height). Note that a frame whose height is determined based on its anchors will not use this height.

Returns
nil

Example
myAddonOptionsParent = myAddonOptions:GetParent();
myAddonOptions:SetHeight(myAddonOptionsParent:GetHeight() / 2);
Result
The frame named 'myAddonOptions' would be set to half the height of its parent frame.

Description
Sets the height of a frame-based object.