WoW:UIOBJECT FontString: Difference between revisions

(demoted headings)
Line 80: Line 80:
If we anchor all sides (e.g. add a "BOTTOM" anchor to the previous fontstring, or change the "TOPRIGHT" to a "BOTTOMRIGHT"), SetWidth() and SetHeight() completely cease to have any effect whatsoever on the output. All output will obey the anchoring points.
If we anchor all sides (e.g. add a "BOTTOM" anchor to the previous fontstring, or change the "TOPRIGHT" to a "BOTTOMRIGHT"), SetWidth() and SetHeight() completely cease to have any effect whatsoever on the output. All output will obey the anchoring points.


However, calling SetWidth() with your object's actual width (which you can't get via GetWidth()!), and calling GetHeight() will still tell you how high the object actually needs to be.
However, calling SetWidth() with your object's actual width (which you can't get via GetWidth(), but you can try GetLeft()-GetRight()), and calling GetHeight() will still tell you how high the object actually needs to be.




Note that you can never completely ''un''-set a width or height once set. You can ''change'' it, but if you want to completely clear it to have WoW start returning computed values for you, you need to create a new fonstring or reload the UI. (At least at the time of this writing, july 2006, version 1.11.2).
If you want to completely clear width or height once set to have WoW start returning computed values for you, you need to call SetWidth(0) or SetHeight(0).




Anonymous user