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

@@ -107,7 +107,7 @@ function DateWidget:update()
local date_title = FrameContainer:new{
padding = Size.padding.default,
margin = Size.margin.default,
margin = Size.margin.title,
bordersize = 0,
TextWidget:new{
text = self.title_text,
@@ -128,7 +128,7 @@ function DateWidget:update()
h = date_title:getSize().h
},
date_title,
CloseButton:new{ window = self, },
CloseButton:new{ window = self, padding_top = Size.margin.title, },
}
local buttons = {
{