mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix some widget title height and close button alignment (#3366)
This commit is contained in:
@@ -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 = {
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user