Posted 27 January 2024, 12:42 pm EST
While trying to analyze a strange behavior with C1DockingTab layout restore in our real world app, I ran into a very strange problem, see attached sample.
C1DockingTabLayoutRestore.zip
Just open it, close it and open it again. Now, the C1CommandDock at bottom has a height of “0”, same for the C1CommandDock to the right and its width. Thus, they seem to be invisible.
In our real app, this does not happen - but here, one of the tabs does not autohide properly. While trying to reproduce this problem, I stumbled with this new issue.
The problem happens with .631 und .636.
Probably it is some trivial error by me, but I don’t see it…
Due to historical reasons, we have C1CommandDock/C1DockingTab on a UserControl instead of a form (don’t know why ), and restore the layout not in “OnLoad”, but in “OnVisibleChanged” (because errors could happen, and in this case we want to reset the stored layout and close the form, which is forbidden in “OnLoad”).
Best regards
Wolfgang