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

Scripture Takes Flowpane #478

Closed
wants to merge 14 commits into from
Closed

Scripture Takes Flowpane #478

wants to merge 14 commits into from

Conversation

KJoslyn
Copy link
Contributor

@KJoslyn KJoslyn commented Aug 20, 2019

TakesFlowPane now fills out the last row of take cards with blank take cards. When the alternate takes list is changed, or when the window is resized, blank cards are added or removed appropriately.

To test, either run main in Main.kt and drill down to a scripture takes page, or checkout takes-flowpane-testapp and run main in RecordScriptureTestApp, which brings you directly to the scripture takes page.


This change is Reviewable

Copy link
Contributor

@aunger aunger left a comment

Choose a reason for hiding this comment

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

Reviewable status: 0 of 5 files reviewed, 2 unresolved discussions (waiting on @KJoslyn)


src/main/kotlin/org/wycliffeassociates/otter/jvm/app/ui/takemanagement/view/TakesFlowPane.kt, line 32 at r3 (raw file):

    override fun layoutChildren() {
        super.layoutChildren()
        if (!isStageShownProperty.value) {

Minor: Consider reversing if/else so predicate isn't negative


src/main/kotlin/org/wycliffeassociates/otter/jvm/app/ui/takemanagement/view/TakesFlowPane.kt, line 93 at r3 (raw file):

        // can easily overflow to a second row. In this case, we should underestimate the amount of space we have.
        if (getNonBlankChildren().size <= roundedMax &&
            nonRoundedMax - roundedMax < 0.02

Minor:
combine lines
also consider pulling return out of if/else

Copy link
Contributor

@aunger aunger left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 8 files at r1, 4 of 5 files at r3.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @KJoslyn)

Copy link
Contributor

@aunger aunger left a comment

Choose a reason for hiding this comment

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

Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @KJoslyn)

Copy link
Contributor Author

@KJoslyn KJoslyn left a comment

Choose a reason for hiding this comment

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

Reviewable status: 4 of 5 files reviewed, 1 unresolved discussion (waiting on @aunger)


src/main/kotlin/org/wycliffeassociates/otter/jvm/app/ui/takemanagement/view/TakesFlowPane.kt, line 32 at r3 (raw file):

Previously, aunger (Russell Aunger) wrote…

Minor: Consider reversing if/else so predicate isn't negative

Yep, that's better. Done.


src/main/kotlin/org/wycliffeassociates/otter/jvm/app/ui/takemanagement/view/TakesFlowPane.kt, line 93 at r3 (raw file):

Previously, aunger (Russell Aunger) wrote…

Minor:
combine lines
also consider pulling return out of if/else

Done.

Copy link
Contributor

@aunger aunger left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r4.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@KJoslyn KJoslyn closed this Aug 28, 2019
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

2 participants