Webapp container does not resize ocrrectly

In 2025r3.1 webapp. I have a container on webpage with the top and sides locked but the bottom is not locked. I set the container height when the page is shown and that works. If I change the container height in code the container does not change. If I leave the page and then return back to the page it is now the correct height. It will then change height up and down with code. Why does it not work without first leaving the page? This all worked correctly in 2025r1.1 I just updated to r3.1

Does anyone have a workaround for this. I need to push out an app update. r3.1 had a bug fix that I needed for this app version. There also seems to be a bug in the Weblistbox where the text in the column header is no longer truncated if it is too long to fit in the width. The text just overflows. Thanks

r3.1 included several fixes to positioning and locking, if you have new edge cases create a new issue. Following tickets in the tracker, I believe there are even more fixes to the system in 26r1, but we don’t have access to it yet.

Is there some way to refresh the page without leaving it and returning?

Create an example project that shows your specific issue and maybe we can find a workaround. I need to see what’s going wrong to suggest workarounds. There were workarounds for the issues I had in r2.1 that were fixed in r3.1, so there is hope.

As a side benefit, once you’ve created the example project that shows your specific issue, you’ll be able to create a ticket as well.

It looks like mywebpage.updatebrowser may have fixed it. I am still testing it. i will try to create a ticket after I get this app updated. Thanks

After more testing the updatebrowser did not fix it. It seems to work once in a while but mostly does not.

I’m sorry. I can’t do anything without a sample project.

1 Like

Here is a sample project. After more testing I realized that the container is resizing. It was weblistbox inside of the container that was Not resizing with the container. I have the weblistbox locked on all sides. I also tried unlocking the bottom and resizing the weblistbox height in code but that did not work. In the sample project If you select half size you will see that if you scroll the list box you can not scroll to bottom. If you then return to the fist page and then back to the second page it is resized correctly. Thanks

testresize.zip (10.9 KB)

I removed the container from the webpage and placed a weblistbox onto the page. I resized the listbox and it does resize but it is the scrollbar that does not resize properly. So the issue is with the Weblistbox scrollbar resizing when resizing down with many rows.

There is already an open issue about resize : https://tracker.xojo.com/xojoinc/xojo/-/issues/80709