You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and Doc4 IsActive and then you close Doc4 (still as active document), new active document will be Doc1 (or any document that is on index 0;
From my point of view i expect, to Doc3 will be selected (or any previous document).
When i looked into code, i noticed that
LayoutElement.cs 76 -> is raising OnParentChanging in Parent setter with new value Null
LayoutContent.cs 692 -> is setting IsSelected property to false for old document
LayoutContent.cs 154 -> setting SelectedContentIndex on parentSelector to -1
and then when AutoFixSelectedContent is called, correct SelectedContentIndex is never set
You can try this in yout TestApp simply by adding more than 3 documents, then set last to active and then close it
The text was updated successfully, but these errors were encountered:
We are still seeing this years later. I have looked into the code a bit but I am not familiar enough with the codebase to identify why it doesn't properly track the previous index.
The previous index seems to be irrelevant. This issue was added in 4927453 when the code was removed, that identifies the previous selected tab via the LastActivationTimestamp. I'm not sure which bug should be resolved by this, so I have added this code again.
When you have multiple documents opened e.g.
Doc1, Doc2, Doc3, Doc4
and Doc4 IsActive and then you close Doc4 (still as active document), new active document will be Doc1 (or any document that is on index 0;
From my point of view i expect, to Doc3 will be selected (or any previous document).
When i looked into code, i noticed that
LayoutElement.cs 76 -> is raising OnParentChanging in Parent setter with new value Null
LayoutContent.cs 692 -> is setting IsSelected property to false for old document
LayoutContent.cs 154 -> setting SelectedContentIndex on parentSelector to -1
and then when AutoFixSelectedContent is called, correct SelectedContentIndex is never set
You can try this in yout TestApp simply by adding more than 3 documents, then set last to active and then close it
The text was updated successfully, but these errors were encountered: