Tracker: Fix draggable folder icon size computation.
Should fix #17906, but I could not reproduce it, so I was unable to confirm this fixes the problem.
This commit is contained in:
@@ -3418,12 +3418,13 @@ BContainerWindow::_AddFolderIcon()
|
||||
return;
|
||||
}
|
||||
|
||||
float iconSize = fMenuBar->Bounds().Height() - 2;
|
||||
if (iconSize < 16)
|
||||
iconSize = 16;
|
||||
float baseIconSize = be_control_look->ComposeIconSize(16).Height() + 1,
|
||||
iconSize = fMenuBar->Bounds().Height() - 2;
|
||||
if (iconSize < baseIconSize)
|
||||
iconSize = baseIconSize;
|
||||
|
||||
fDraggableIcon = new(std::nothrow)
|
||||
DraggableContainerIcon(be_control_look->ComposeIconSize(iconSize));
|
||||
DraggableContainerIcon(BSize(iconSize - 1, iconSize - 1));
|
||||
if (fDraggableIcon != NULL) {
|
||||
fMenuContainer->GroupLayout()->AddView(fDraggableIcon);
|
||||
fMenuBar->SetBorders(
|
||||
|
||||
Reference in New Issue
Block a user