GetScreenHeight
Jump to navigation
Jump to search
Returns the height of the window measured at UIParent scale (effectively the same as UIParent:GetHeight().
screenHeight = GetScreenHeight()
Returns
- screenHeight
- number - Height of window at UIParent scale
Example
-- Note that the return value does not match the screen resolution set in the Video Options, but will instead represent a dimension with the same aspect ratio.
DEFAULT_CHAT_FRAME:AddMessage( ( GetScreenWidth() * UIParent:GetEffectiveScale() ).."x"..( GetScreenHeight() * UIParent:GetEffectiveScale() ) )