Skip to main content
JPabl.1
Associate III
November 5, 2024
Solved

Textarea inside custom container doesn't update xy

  • November 5, 2024
  • 2 replies
  • 781 views

Hi there Touchgfx team!

 

I have a textarea and 2 images inside a custom container. From my view, I create the custom container and then call a custom container method to update the x,y of these widgets like this: 

 storage_full_image.setXY(battery_x, battery_y);
 battery_image.setXY(battery_x - 25, battery_y);
 header_date_text.setXY(header_date_x, header_date_y);

The 2 images move without problem, but the textarea remains fixed. I'm invalidating all 3 widgets after updating the XY. 

Is there a different way to update the XY of a textarea?

Thanks a lot in advance 

Best answer by JPabl.1

Neverming, I was updating it from another function and didn't notice it

2 replies

GaetanGodart
Technical Moderator
November 7, 2024

Hello @JPabl.1 ,

 

Does it also happen if it is outside of your custom container (just inside a screen)?

Can you share the project?

Can you try to create a minimal project with steps to reproduce the issue?

 

Regards,

JPabl.1
JPabl.1AuthorBest answer
Associate III
November 9, 2024

Neverming, I was updating it from another function and didn't notice it

GaetanGodart
Technical Moderator
November 11, 2024

No problem man!

I am glad you found the solution :smiling_face_with_smiling_eyes:

 

Regards,