changeset c5e60f9aad4e in sao:default
details: https://hg.tryton.org/sao?cmd=changeset&node=c5e60f9aad4e
description:
        Use 'start' text-align when xalign is 0.5 but xexpand is true

        issue10770
diffstat:

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

diffs (16 lines):

diff -r 7893391083b1 -r c5e60f9aad4e src/view/form.js
--- a/src/view/form.js  Fri Oct 08 15:00:05 2021 +0200
+++ b/src/view/form.js  Fri Oct 08 15:51:26 2021 +0200
@@ -547,7 +547,11 @@
             if (attributes.xalign !== undefined) {
                 var xalign;
                 if (attributes.xalign == 0.5) {
-                    xalign = 'center';
+                    if (xexpand) {
+                        xalign = 'start';
+                    } else {
+                        xalign = 'center';
+                    }
                 } else {
                     xalign = attributes.xalign <= 0.5? 'start': 'end';
                 }

Reply via email to