Removed unneeded column width change to match msw behavior.
This commit is contained in:
@@ -3711,17 +3711,8 @@ bool wxListMainWindow::HasCheckboxes() const
|
|||||||
|
|
||||||
bool wxListMainWindow::EnableCheckboxes(bool enable)
|
bool wxListMainWindow::EnableCheckboxes(bool enable)
|
||||||
{
|
{
|
||||||
bool changed = enable != m_hasCheckboxes;
|
|
||||||
m_hasCheckboxes = enable;
|
m_hasCheckboxes = enable;
|
||||||
|
|
||||||
if (changed) {
|
|
||||||
int cbWidth = wxRendererNative::Get().GetCheckBoxSize(this).GetWidth() + MARGIN_AFTER_CHECKBOX;
|
|
||||||
if (m_hasCheckboxes)
|
|
||||||
SetColumnWidth(0, GetColumnWidth(0) + cbWidth);
|
|
||||||
else
|
|
||||||
SetColumnWidth(0, GetColumnWidth(0) - cbWidth);
|
|
||||||
}
|
|
||||||
|
|
||||||
m_dirty = true;
|
m_dirty = true;
|
||||||
m_headerWidth = 0;
|
m_headerWidth = 0;
|
||||||
Refresh();
|
Refresh();
|
||||||
|
Reference in New Issue
Block a user