Fix some widget title height and close button alignment (#3366)

This commit is contained in:
poire-z
2017-10-16 17:51:56 +02:00
committed by Frans de Jonge
parent f4dd504d2e
commit 8aa26edeb6
8 changed files with 52 additions and 39 deletions

View File

@@ -238,6 +238,7 @@ end
function FrontLightWidget:update()
-- header
self.light_title = FrameContainer:new{
padding = Size.padding.default,
margin = Size.margin.title,
bordersize = 0,
TextWidget:new{
@@ -266,7 +267,7 @@ function FrontLightWidget:update()
h = self.light_title:getSize().h
},
self.light_title,
CloseButton:new{ window = self, },
CloseButton:new{ window = self, padding_top = Size.margin.title, },
}
self.light_frame = FrameContainer:new{
radius = Size.radius.window,