[Fixed] Textarea seems to expand to maximum / bug?

What I’m trying to do:
I am loading a textarea from a dictionary,each textarea is in a repeating panel…similar to the blog post example/tutorial

What I’ve tried and what’s not working:
Nothing abnormal when adding the text. However, when initializing using data binding, it seems to expand to the max. I am having to page down 4-5 times to get to the next textbox in the repeating panel. I have not encountered this behavior anytime before. Is this a bug?

It will be helpful if you can share a clone link showing this particular behaviour

1 Like

Attaching a clone link,https://anvil.works/build#clone:PL6FSQWBA6XCZH2O=WDVPS2VIZFLHLE6VKJLGPV6H

Here is a link to the app https://textarea-issue.anvil.app/, try opening second order in list / adding to the text area.

If you add something to the textarea, it displays normally at first. If you refresh and come back, the texarea box is now fully expanded. Also, putting the cursor in the textarea and arrow-down seems to restore the textarea back to size, for the current session.

Thanks for the clone. Moved to bug reports.

There will be a fix for this shipped soon.

As a temporary work around you can add a show event to the TextArea that isn’t correctly auto expanding with the following code:

  def message_content1_show(self, **event_args):
      """This method is called when the text area is shown on the screen"""
      self.message_content1.auto_expand = True

Works, I was trying this from Init and it wasn’t working

1 Like

This should now be fixed and you shouldn’t need to use the show event.

1 Like

Seems to have broken again now

The original app works for me. Do you have a new clone you can share?

ok, will do. Just FYI…the original app isn’t working either without the fix…try https://textarea-issue.anvil.app/

i am seeing this right now…

Which version of Chrome are you using? (Windows yes?)
(Works for me on Mac M1 - Safari, Chrome and FireFox)

Have you tried a hard refresh? - (it might be loading a cached version)
Can you try a different browser?
What about running the app in the IDE do you get the same problem?

It was a hard refresh issue. The first time i noticed it was in the IDE, but unable to reproduce. Closing the issue, thanks.

1 Like