changeset fef1487e5047 in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=fef1487e5047
description:
        Use width attribute for default width of number widgets

        issue10609
        review346691002
diffstat:

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

diffs (21 lines):

diff -r b16c2912fc23 -r fef1487e5047 src/view/form.js
--- a/src/view/form.js  Fri Aug 06 09:37:02 2021 +0200
+++ b/src/view/form.js  Fri Aug 06 09:52:18 2021 +0200
@@ -1897,7 +1897,7 @@
             return value;
         },
         get width() {
-            return 8;
+            return this.attributes.width || 8;
         },
         display: function() {
             var set_symbol = function(el, text) {
@@ -1965,7 +1965,7 @@
                     return acc + cur;
                 });
             } else {
-                return 18;
+                return this.attributes.width || 18;
             }
         },
         display: function() {

Reply via email to