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

Textarea autosize and scrollbar off on larger size #496

Open
hoseyjoe opened this issue Dec 2, 2022 · 5 comments
Open

Textarea autosize and scrollbar off on larger size #496

hoseyjoe opened this issue Dec 2, 2022 · 5 comments

Comments

@hoseyjoe
Copy link
Contributor

hoseyjoe commented Dec 2, 2022

The issue seems to get worse the larger the max size of the textarea is. In both cases there is no scrollbar. The builder below is max-height 200px
If you click into the field you can use the up/down arrows to scroll down from the last char

http://haxeui.org/builder/?7c7f9b13
200

Max-width 500px. You can see the bottom letter is cut off
http://haxeui.org/builder/?01346991
500

@hoseyjoe
Copy link
Contributor Author

hoseyjoe commented Dec 6, 2022

Keep an eye on line 1. When the enter key is hit after 9...the 1 shifts up slightly. This is true from this point forward. Except after 13 where it shifts down slightly??
after9

@ianharrigan
Copy link
Member

is this rapid-text-metrics or is the behaviour the same regardless?

Cheers,
Ian

@hoseyjoe
Copy link
Contributor Author

hoseyjoe commented Dec 7, 2022

Does builder use rapid-text-metrics? I believe it is an issue regardless

@ianharrigan
Copy link
Member

Good point... duh... wasnt thinking. Nice one.

@hoseyjoe
Copy link
Contributor Author

hoseyjoe commented Aug 23, 2024

Just trying to close old issues. This one still lingers. I opened
http://haxeui.org/builder/?01346991
This is html5 and I did not test other targets

  1. I first delete all content and then start typing. Notice the top line disappears for every newline and no scrollbar? I am assuming newline isnt adding enough to height? Once maxheight is reached scrollbar appears and work great.
  2. Without a max height a scrollbar never appears and text get lost off top
  3. Second half you can arrow up/down but no scrollbar
    scroll

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