Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix unarchiving of BScrollView with layout
* We archive views using "managed" archives, and the children are not attached in the BView(BMessage*) constructor, but later. So it's not possible to find the target and scrollbars in the constructor of BScrollView. * Make BScrollView override AllUnarchived and find the target and scrollbars again there. The code is slightly different as there is no guarantee that the first child will be the target in that case. The existing code in the constructor is preserved for non-managed archives.
- Loading branch information
1 parent
3b61a4b
commit bdb4ae3
Showing
2 changed files
with
54 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters