changeset f9099a72ff8f in sao:default
details: https://hg.tryton.org/sao?cmd=changeset;node=f9099a72ff8f
description:
        Append form container after parsing child

        issue9662
        review306531003
diffstat:

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

diffs (17 lines):

diff -r 9f6f8d5ed852 -r f9099a72ff8f src/view/form.js
--- a/src/view/form.js  Sun Oct 11 16:26:25 2020 +0200
+++ b/src/view/form.js  Sun Oct 11 16:27:39 2020 +0200
@@ -31,11 +31,12 @@
             var container = new Sao.View.Form.Container(
                 Number(node.getAttribute('col') || 4));
             this.view.containers.push(container);
-            this.view.el.append(container.el);
             this.parse_child(node, container);
             if (this._containers.length > 0) {
                 throw 'AssertionError';
             }
+            // Append after parsing child to minimize browser reflow
+            this.view.el.append(container.el);
         },
         parse_child: function(node, container) {
             if (container) {

Reply via email to