* Prevent a column to shrink smaller then the default column width. This was most notable
when double clicking e.g. the Size column in a tracker window containing only folders. It would shrink smaller then one can resize it while dragging the resize 'handle'. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@28885 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
b2f91e61b7
commit
b47e734742
@ -8493,7 +8493,7 @@ BPoseView::ResizeColumnToWidest(BColumn *column)
|
||||
{
|
||||
ASSERT(ViewMode() == kListMode);
|
||||
|
||||
float maxWidth = 0;
|
||||
float maxWidth = kMinColumnWidth;
|
||||
|
||||
int32 count = fPoseList->CountItems();
|
||||
for (int32 i = 0; i < count; ++i) {
|
||||
@ -8505,7 +8505,7 @@ BPoseView::ResizeColumnToWidest(BColumn *column)
|
||||
}
|
||||
}
|
||||
|
||||
if (maxWidth > 0) {
|
||||
if (maxWidth > kMinColumnWidth || maxWidth < column->Width()) {
|
||||
ResizeColumn(column, maxWidth);
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user