Endless loop in WEBLib.Grids

I have upgraded today to the latest version of TMS WEB Core and my application stopped to work , after some investigations i found the application locked in an endless loop in Weblib.Grids line 5696

        while (td.offsetTop + td.offsetHeight - pardiv.scrollTop > pardiv.offsetHeight - sh)  {
          pardiv.scrollTop = pardiv.scrollTop + td.offsetHeight;
        }

i add the following lines

      if (td.offsetHeight>0) {
        while (td.offsetTop + td.offsetHeight - pardiv.scrollTop > pardiv.offsetHeight - sh)  {
          pardiv.scrollTop = pardiv.scrollTop + td.offsetHeight;
        }
      }

and it works again , have i done the right correction ?

While I cannot see anything wrong with this extra check, I'd like to know under what circumstances td.offsetHeight could become zero or smaller than zero?
Can you send some sample source project with which we can reproduce this so we can better understand?

Hi,
I have a TXDataWebdataset linked via a webdatasource to Grid.
once the dataset loaded with a Xdata JSON value ( SetJsonData ) i call a procedure to fill the data of 2 barchart.
In this procedure it calls dataset.first , so before correction it was locked at the filling of the second barchart at the dataset.first call

          adsTotal_tickets.Close;
          adsTotal_tickets.SetJsonData(Response.DataSetValue);
          adsTotal_tickets.open;

          WebComboBox1.itemIndex := PosLegende;

          RafraichiChart(BarChart);
          RafraichiChart(BarChartPanierMoyen);

Did you try with latest release v2.4.5.4?

Yes i download latest version on friday 9th

sorry v2.4.5.4 as been uploaded on sunday , i try it immediatly

Ok i tried with latest version and you've included the modification thanks !