Hide page removed from wxAuiNotebook
It doesn't make sense to leave the page shown, and overlapping the remaining pages, after removing it. Closes https://github.com/wxWidgets/wxWidgets/pull/1742
This commit is contained in:
@@ -90,6 +90,9 @@ Changes in behaviour not resulting in compilation errors
|
||||
- wxListCtrl::GetItemState() in wxMSW now checks the passed in item index for
|
||||
validity, as the generic version under the other platforms already did.
|
||||
|
||||
- wxAuiNotebook::RemovePage() now hides the removed page, so it needs to be
|
||||
shown again if it is reused in another place.
|
||||
|
||||
|
||||
Changes in behaviour which may result in build errors
|
||||
-----------------------------------------------------
|
||||
|
@@ -2082,6 +2082,8 @@ bool wxAuiNotebook::RemovePage(size_t page_idx)
|
||||
if (!wnd)
|
||||
return false;
|
||||
|
||||
ShowWnd(wnd, false);
|
||||
|
||||
// find out which onscreen tab ctrl owns this tab
|
||||
wxAuiTabCtrl* ctrl;
|
||||
int ctrl_idx;
|
||||
|
Reference in New Issue
Block a user