StyledEdit::StatusView:No stretching for pos cell only

This commit is contained in:
Siarzhuk Zharski 2013-01-16 17:38:45 +01:00
parent ad834f7320
commit 20cbdcd166

View File

@ -243,7 +243,7 @@ StatusView::_ValidatePreferredSize()
float width = ceilf(StringWidth(fCellText[i]));
if (width > 0)
width += kHorzSpacing * 2;
if (width > fCellWidth[i])
if (width > fCellWidth[i] || i != kPositionCell)
fCellWidth[i] = width;
fPreferredSize.width += fCellWidth[i];
}