ParamQuery grid support forum

General Category => Bug Report => Topic started by: Bohuslav Stanek on November 14, 2016, 06:28:34 pm

Title: Editing last row in virtualY table
Post by: Bohuslav Stanek on November 14, 2016, 06:28:34 pm
Hi,

I found problem with editing last row of table with virtualX: true. Here is example http://jsfiddle.net/9s8g4e5q/1/ (http://jsfiddle.net/9s8g4e5q/1/).
If I double click on any cell in last row to edit, first row disappears. If I click again, second row dissapears.

Problem is probably in method _scrollRowVirtual. In version 3.3.0 on line 5068, there is condition ...
if (td_bottom > htCont - htSB - marginTop)
... where htSB is height of horizontal scrollbar. But scrollbar is not part of container pq-grid-cont, so htSb should not be probably in that condition in my opinion.

I hope my report will help to correct this.
Title: Re: Editing last row in virtualY table
Post by: paramvir on November 15, 2016, 02:08:10 pm
Thanks for raising issue, looking into it.
Title: Re: Editing last row in virtualY table
Post by: paramvir on November 16, 2016, 08:30:21 pm
It's fixed in v3.3.4, thanks for the pointer though!