We have a very big project and it doesn’t make sense to send it, lots of files and code. So I spent some time to made repository, as small as possible to reproduce issue. There can be panels inside panels, but this is exact layout we have in our big project. We have a panel which should be resizable: expanded, half size, collapsed. This panel is supposed to have scroll view with chat messages. When I resize panel, it’s content is shaking, due to relayout or some other kind issue. I don’t know how to fix this. I’ve spent several days, trying different approaches, changing panel height, changing panel margin, etc. Nothing works. I can move panel down, but then I’m not able to scroll to the very bottom, as 50% of panel will be outside of the screen, so moving panel is not an option, we need to change it’s size. Do I have to disable/enable some properties to stop re-layout process or something?
The code you’ve shared is a bit too complex to suggest a solution without digging much deeper into it.
However, I suspect that the root cause of the problem lies in the fact that you’re executing some JavaScript callbacks that, in turn, do some changes to your UX. Since the UI and JS run on separate threads, such approach is prone to result in visual jitter.
As explained on Slack, you should leave all UI-work to UX code and not involve JS in it. Here’s a little proof-of-concept code that you can copy-paste in your MainView.ux while on that content-shaking branch, which does not suffer from any jitter: