changeset 359aa5ea74b5 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=359aa5ea74b5
description:
        Increase display size when path is also equals to it

        Length and index are always shifted by 1.

        issue8506
        review273621002
diffstat:

 src/view/tree.js |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r aff541ebcb25 -r 359aa5ea74b5 src/view/tree.js
--- a/src/view/tree.js  Thu Jul 25 10:18:51 2019 +0200
+++ b/src/view/tree.js  Thu Jul 25 10:20:22 2019 +0200
@@ -747,7 +747,7 @@
                 return;
             }
             path = this.record.get_index_path(this.group);
-            if (this.rows.length < path[0]) {
+            if (this.rows.length <= path[0]) {
                 this.display_size = this.group.length;
                 this.display();
             }

Reply via email to