The API is no longer being updated here until further notice. |
Resizes the GameTooltip border and background around its content.
GameTooltip:SetPadding(right, bottom [, left, top])
Arguments[]
- right, bottom, left, top
- number - Positive values expand the border and negative values shrink it (default: 0).
Example[]
GameTooltip:SetPadding(16, 0)
Patch changes[]
- Patch 8.2.0 (2019-06-25): Added optional left and top parameters[1]
- Patch 7.1.0 (2016-10-25): Added second parameter for bottom padding[2][3]
References[]
- ^ Kaivax 2019-06-19. UI Changes in Rise of Azshara.
- ^ gmarco 2016-10-28. Wow Interface: 7.1 LUA api changes.
- ^ Calls to SetPadding() inside GameTooltip_CalculatePadding() since Patch 7.2.0 at GameTooltip.lua:152 (archived by Foxlit at Townlong Yak)