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

Crash on textarea custom component #8

Open
hoseyjoe opened this issue Sep 15, 2021 · 1 comment
Open

Crash on textarea custom component #8

hoseyjoe opened this issue Sep 15, 2021 · 1 comment

Comments

@hoseyjoe
Copy link

The crash occurs on a custom component Text that extends the textarea. Text doesnt do anything but assign the below style. Removing that and I believe it wont crash.

style="height:auto;min-height:26px;max-height:85px;width:100%;"

Also the crash doesn't occur when I add width="100%" to the component like in mainView

<text text="rief" "></text>
to
<text text="rief" width="100%"></text>

Crash only seems to occur when inside scrollview? Change main-view.xml to the below and it doesnt crash

<vbox width="100%" height="100%" style="padding: 5px;">
    <text text="rief"></text>
</vbox>

ScrollBarCrash_original.zip

@hoseyjoe
Copy link
Author

TLDR

Change custom component from style width to property width:

<textarea text="" style="height:auto;min-height:26px;max-height:85px;width:100%;"> 

</textarea>

to

<textarea text="" style="height:auto;min-height:26px;max-height:85px;" width="100%">    

</textarea>

Fixes issue. Not sure why style causes crash but property change does not

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

1 participant