FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: nested fragments interact thru child fragment manager by manoldonev · Pull Request #6293 · NativeScript/NativeScript · GitHub

fix: nested fragments interact thru child fragment manager - #6293

Merged
manoldonev merged 8 commits into
masterfrom
mdonev/child-fragment-manager-fix
Oct 11, 2018
Merged

manoldonev merged 8 commits into
masterfrom
mdonev/child-fragment-manager-fix

Conversation

manoldonev commented Sep 21, 2018 •
edited
Loading

Copy link
Copy Markdown
Contributor

Fixes #6292

TODO: review tab fragments' logic with respect to this change (and how did it work so far in the first place).

manoldonev self-assigned this Sep 21, 2018
ghost added the in progress label Sep 21, 2018
manoldonev force-pushed the mdonev/child-fragment-manager-fix branch 4 times, most recently from 66045a1 to 45c7a80 Compare September 26, 2018 16:20
manoldonev changed the title [WIP] fix: nested fragments interact thru child fragment manager fix: nested fragments interact thru child fragment manager Sep 26, 2018
import { Background, ad as androidBackground } from "../../styling/background";
import { profile } from "../../../profiling";
import { topmost } from "../../frame/frame-stack";
import { topmost } from "../../frame";

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

If I remember correctly, the reason for the separate frame-stack file and import was to avoid circular dependencies. Is this problem fixed now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Not sure but I'll revert that.

// - tabview -> frame1 (frame1 uses tabview item CHILD fm)
// - frame1 -> tabview (tabview uses frame1 CHILD fm)
// - frame1 -> tabview -> frame2 (tabview uses frame1 CHILD fm; frame2 uses tabview item CHILD fm)
if (view.typeName === "Frame" || view.typeName === "TabView") {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

I think the typeName will be wrong (and won't work) with uglify. The other property cssType that is set via the decorator might work, but it doesn't look right to use it.

What do you think about having a method _hasFragments() that returns true for TabView and Frame ?

manoldonev force-pushed the mdonev/child-fragment-manager-fix branch 3 times, most recently from be7c007 to 9831312 Compare October 1, 2018 08:51
manoldonev force-pushed the mdonev/child-fragment-manager-fix branch from 858ef79 to 0e498a7 Compare October 8, 2018 15:35
manoldonev force-pushed the mdonev/child-fragment-manager-fix branch from 407bcd9 to abc3f1c Compare October 9, 2018 07:01
manoldonev force-pushed the mdonev/child-fragment-manager-fix branch from 29b533b to bf0865a Compare October 10, 2018 12:59
manoldonev merged commit 3071720 into master Oct 11, 2018
manoldonev deleted the mdonev/child-fragment-manager-fix branch October 11, 2018 14:44
ghost removed the in progress label Oct 11, 2018

lock Bot commented Oct 11, 2019

Copy link
Copy Markdown

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

lock Bot locked and limited conversation to collaborators Oct 11, 2019
This file contains hidden or 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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interact with nested fragments only thru child fragment manager

4 participants


Back | FazBrowse Home | New Git URL