Skip to content

Commit

Permalink
Now the main window border decoration is hidden if no frames are visi…
Browse files Browse the repository at this point in the history
…ble (CF issue #1282).
  • Loading branch information
michaelnpsp committed Feb 9, 2024
1 parent a7df722 commit 8dd16a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GridLayout.lua
Original file line number Diff line number Diff line change
Expand Up @@ -794,9 +794,11 @@ function Grid2Layout:UpdateSize()
curCol = curCol + col
remSize = (g.dbx.type=='custom' or (g[1] and g[1]:IsVisible())) and 0 or remSize + col
end
local col = math.max( curCol - remSize + p.Spacing*2 - p.Padding, 1 )
curCol = curCol - remSize
local col = math.max( curCol + p.Spacing*2 - p.Padding, 1 )
local row = math.max( maxRow + p.Spacing*2, 1 )
if p.horizontal then col,row = row,col end
self.frame.frameBack:SetShown(curCol>1 and maxRow>1)
self.frame.frameBack:SetSize(col,row)
if not Grid2:RunSecure(7, self, "UpdateSize") then
self.frame:SetSize(col,row)
Expand Down

0 comments on commit 8dd16a9

Please sign in to comment.