CheckButton: accurate vertical alignment (#8083)

This commit is contained in:
hius07
2021-08-17 16:20:41 +03:00
committed by GitHub
parent b3eef2f20b
commit 19f43c47e1
4 changed files with 16 additions and 14 deletions

View File

@@ -28,6 +28,7 @@ local CheckMark = InputContainer:new{
face = Font:getFace("smallinfofont"),
width = 0,
height = 0,
baseline = 0,
_mirroredUI = BD.mirroredUILayout(),
}
@@ -41,6 +42,7 @@ function CheckMark:init()
face = self.face,
para_direction_rtl = para_direction_rtl,
}
self.baseline = checked_widget:getBaseline()
local unchecked_widget = TextWidget:new{
text = "",
face = self.face,