[UX] Fix bookstatuswidget truncated at the bottom in landscape (#3498)

pull/3506/head
Robert 7 years ago committed by Frans de Jonge
parent ce910cf2e7
commit b37ae2d681

@ -153,9 +153,17 @@ function BookStatusWidget:genHeader(title)
} }
} }
} }
local span_top, span_bottom
if Screen:getScreenMode() == "landscape" then
span_top = VerticalSpan:new{ width = Size.span.horizontal_default }
span_bottom = VerticalSpan:new{ width = Size.span.horizontal_default }
else
span_top = VerticalSpan:new{ width = Size.item.height_default }
span_bottom = VerticalSpan:new{ width = Size.span.vertical_large }
end
return VerticalGroup:new{ return VerticalGroup:new{
VerticalSpan:new{ width = Size.item.height_default }, span_top,
HorizontalGroup:new{ HorizontalGroup:new{
align = "center", align = "center",
padding_span, padding_span,
@ -166,7 +174,7 @@ function BookStatusWidget:genHeader(title)
line_container, line_container,
padding_span, padding_span,
}, },
VerticalSpan:new{ width = Size.span.vertical_large }, span_bottom,
} }
end end

Loading…
Cancel
Save