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

FXGLDefaultMenu::createTitleView - incorrect layout width calculation #1020

Open
AlmasB opened this issue Apr 21, 2021 · 0 comments
Open

FXGLDefaultMenu::createTitleView - incorrect layout width calculation #1020

AlmasB opened this issue Apr 21, 2021 · 0 comments
Labels
codefest23-24 difficulty:easy Simple, few changes required good-first-issue First-time contributor-friendly help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin type:bug Doesn't behave according to specification

Comments

@AlmasB
Copy link
Owner

AlmasB commented Apr 21, 2021

        // the lazy font size may not have been computed by this point
        // so we need to listen for changes in layout bounds of text1 and text2

val textWidth = text.layoutBounds.width + text2.layoutBounds.width

val textWidth = text.layoutBounds.width + text2.layoutBounds.width

@AlmasB AlmasB added type:bug Doesn't behave according to specification difficulty:easy Simple, few changes required good-first-issue First-time contributor-friendly help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin labels Apr 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
codefest23-24 difficulty:easy Simple, few changes required good-first-issue First-time contributor-friendly help wanted Contributions welcome / high PR acceptance rate lang:kotlin-only Solution should be in Kotlin type:bug Doesn't behave according to specification
Projects
None yet
Development

No branches or pull requests

1 participant