Ensure full label is shown after editing it in generic wxListCtrl
The list control needs to be updated after the user has edited an item label because, for example, in icon view the column width and positions of subsequent columns may change if the edited label is or was wider than the icons and other labels in the column. Closes #24311.
This commit is contained in:
parent
b12977cb75
commit
716bf59449
1 changed files with 9 additions and 2 deletions
|
|
@ -2395,8 +2395,15 @@ bool wxListMainWindow::OnRenameAccept(size_t itemEdit, const wxString& value)
|
|||
|
||||
data->GetItem( 0, le.m_item );
|
||||
le.m_item.m_text = value;
|
||||
return !GetParent()->GetEventHandler()->ProcessEvent( le ) ||
|
||||
le.IsAllowed();
|
||||
|
||||
GetParent()->GetEventHandler()->ProcessEvent( le );
|
||||
|
||||
if ( !le.IsAllowed() )
|
||||
return false;
|
||||
|
||||
m_dirty = true;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
void wxListMainWindow::OnRenameCancelled(size_t itemEdit)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue