* 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:
Karsten Heimrich 2009-01-11 18:12:12 +00:00
parent b2f91e61b7
commit b47e734742

View File

@ -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;
}