Tracker: Fix PoseView list item height computation.

This gets list item margins on HiDPI much closer to their standard-
DPI counterparts.

Fixes #16178.
This commit is contained in:
Augustin Cavalier 2020-07-05 21:02:24 -04:00
parent ec25a0451d
commit 749fbae043

View File

@ -278,8 +278,7 @@ BPoseView::BPoseView(Model* model, uint32 viewMode)
fDeskbarFrame(0, 0, -1, -1), fDeskbarFrame(0, 0, -1, -1),
fTextWidgetToCheck(NULL) fTextWidgetToCheck(NULL)
{ {
fListElemHeight = std::fmax(ListIconSize(), fListElemHeight = std::fmax(ListIconSize(), ceilf(sFontHeight * 1.2f));
ceilf(sFontHeight) < 20 ? 20 : ceilf(sFontHeight * 1.1f));
fViewState->SetViewMode(viewMode); fViewState->SetViewMode(viewMode);
fShowSelectionWhenInactive fShowSelectionWhenInactive