Xojo2025R1.1: WebListBox with DataSource column header right justification issue

I have the following code executing Java script that sets the right justification of the column header in the WebListBox when needed:

ExecuteJavaScript("var header = document.querySelector('#" + DataSourcesListBox.ControlID + " thead th:nth-child(" + pColNum.ToString + ")');if (header) { header.classList.add('text-end'); }")

The above code is called when the thread completes fetching data. This works as expected in Xojo2025R1 - I get the column header right justified.
However, in Xojo2025R1.1 the column header does not get right justified.

Note: the data in the column is right justified but that is handled separately in DataSource.DataRow method - this works as expected in both releases of Xojo.

Any suggestions as to what could be making the difference?

Open your browser developer tools and inspect the Weblistbox code for the header to find the difference between 2025r1 and 2025r1.1.
Adjust your JavaScript accordingly.

Edit: or maybe is a timing issue. Test executing later.
Edit2: you can add a button with your code to test, it works correctly with 2025r1.1 and the example that comes with Xojo:

If you can provide an example or modify Xojo’s example, we may be able to help.

1 Like

Did you find a solution?