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

Widget TextList: text size doesn't apply #137

Closed
notEvil opened this issue Feb 24, 2023 · 2 comments
Closed

Widget TextList: text size doesn't apply #137

notEvil opened this issue Feb 24, 2023 · 2 comments

Comments

@notEvil
Copy link

notEvil commented Feb 24, 2023

Hi,

var text_list = ui.addTextList(0, 0, 1, 1)
text_list.textSize(10)
text_list.autoScroll(true)


var count = 0

util.loop(1000, () => {
  text_list.add((count++).toString())
}).start()

gives me

All lines except one are using the default text size. It is semi random which line is using the correct text size. I have no clue why; an implementation based on List works as expected, see https://gitlab.com/notEvil/cyclometer/-/blob/master/PHONK/app/lib/mui.js.

@victordiaz
Copy link
Owner

oh! I will have a look.
I allocated time next week to do some PHONK work.

By the way, feel free to join the Discord channel in case you wanna have a chat there!

@notEvil
Copy link
Author

notEvil commented Mar 12, 2023

fixed in #141

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

No branches or pull requests

2 participants