StyledEdit::StatusView:No stretching for pos cell only
This commit is contained in:
@@ -243,7 +243,7 @@ StatusView::_ValidatePreferredSize()
|
|||||||
float width = ceilf(StringWidth(fCellText[i]));
|
float width = ceilf(StringWidth(fCellText[i]));
|
||||||
if (width > 0)
|
if (width > 0)
|
||||||
width += kHorzSpacing * 2;
|
width += kHorzSpacing * 2;
|
||||||
if (width > fCellWidth[i])
|
if (width > fCellWidth[i] || i != kPositionCell)
|
||||||
fCellWidth[i] = width;
|
fCellWidth[i] = width;
|
||||||
fPreferredSize.width += fCellWidth[i];
|
fPreferredSize.width += fCellWidth[i];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user