Skip to content

Commit

Permalink
Do not reserve space for Logo if empty
Browse files Browse the repository at this point in the history
Signed-off-by: Stefano Babic <[email protected]>
  • Loading branch information
sbabic committed Dec 19, 2018
1 parent ff0bf80 commit 2abca0b
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions common.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,17 +21,19 @@ function RescueGUIHeader.new(class, self)
{
Text = self.Description or "",
}

self.logo = ui.ImageWidget:new
{
Width = "fill",
Height = "fill",
Mode = "inert",
Image = self.Image,
HAlign = "center",
}
grp:addMember(self.title)
grp:addMember(self.logo)

if self.Image then
self.logo = ui.ImageWidget:new
{
Width = "fill",
Height = "fill",
Mode = "inert",
Image = self.Image,
HAlign = "center",
}
grp:addMember(self.logo)
end

return grp
end

0 comments on commit 2abca0b

Please sign in to comment.