Skip to content
This repository has been archived by the owner on Nov 6, 2019. It is now read-only.

Stretch factors and size basis should be initialized when sizer is created. #442

Open
sccolbert opened this issue Oct 18, 2019 · 0 comments
Assignees
Labels

Comments

@sccolbert
Copy link
Member

For BoxLayout and SplitLayout, these properties should be initialized when the sizer is created (if possible). In some cases, the widget will be resized before the fit request is processed. This means the initial layout will have stale data. In the case of the SplitLayout, this causes the initial layout to be completely wrong when one widget has a stretch factor of zero.

https://github.com/phosphorjs/phosphor/blob/master/packages/widgets/src/splitlayout.ts#L297

@sccolbert sccolbert added the bug label Oct 18, 2019
@sccolbert sccolbert self-assigned this Oct 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant