Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Window nesting #14

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Window nesting #14

wants to merge 1 commit into from

Conversation

Vlemert
Copy link
Contributor

@Vlemert Vlemert commented Apr 22, 2017

I took a stab at nesting of window elements, which turend out to be quite hard to do.

Decided not to use setParentWindow, because of limitations on Windows: https://github.com/electron/electron/blob/master/docs/api/browser-window.md#platform-notices

This does mean that when nested, windows need to be constructed top down, instead of bottom up, because child windows need the reference of their parent in the constructor. This is not how fiber likes to do things.

As a side effect, doing this meant that windows might not be instantiated in their own finalizeBeforeMount phase, which means that adding event handlers must wait untill commitMount.

I don’t think I have a good enough understanding of fiber to oversee the consequences of moving the event handlers, so any ideas/feedback/comments are very welcome.

I took a stab at nesting of window elements, which turend out to be quite hard to do.

Decided not to use `setParentWindow`, because of limitations on Windows: https://github.com/electron/electron/blob/master/docs/api/browser-window.md#platform-notices

This does mean that when nested, windows need to be constructed top down, instead of bottom up, because child windows need the reference of their parent in the constructor. This is not how fiber likes to do things.

As a side effect, doing this meant that windows might not be instantiated in their own `finalizeBeforeMount ` phase, which means that adding event handlers must wait untill `commitMount`.

I don’t think I have a good enough understanding of fiber to oversee the consequences of moving the event handlers, so any ideas/feedback/comments are very welcome.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant