mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23:20:00 +00:00
unitframes: handle negative element spacing
This commit is contained in:
@@ -183,6 +183,11 @@ function pfUI.uf:UpdateFrameSize()
|
||||
local height = self.config.height
|
||||
local pheight = self.config.pheight
|
||||
local real_height = height + spacing + pheight + 2*default_border
|
||||
if spacing ~= abs(spacing) and abs(spacing) > tonumber(pheight) then
|
||||
real_height = height
|
||||
spacing = 0
|
||||
end
|
||||
|
||||
local portrait = 0
|
||||
if self.config.portrait == "left" or self.config.portrait == "right" then
|
||||
self.portrait:SetWidth(real_height)
|
||||
|
||||
Reference in New Issue
Block a user