Projet

Général

Profil

0001-js-don-t-set-responsive-table-width-for-grid-widgets.patch

Frédéric Péters, 21 janvier 2022 09:24

Télécharger (1,12 ko)

Voir les différences:

Subject: [PATCH] js: don't set responsive table width for grid widgets
 (#60893)

 wcs/qommon/static/js/qommon.forms.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
wcs/qommon/static/js/qommon.forms.js
101 101
};
102 102
Responsive_table_widget.prototype.fit = function () {
103 103
    'use strict';
104
    this.table.style.width = "auto";
105
    if (this.parent.clientWidth < this.table.clientWidth)
104
    if (this.parent.clientWidth < this.table.clientWidth) {
106 105
        this.table.style.width = "100%";
106
    } else if (! $(this.parent).parent().is('[class*=" grid-"]')) {
107
        this.table.style.width = "auto";
108
    }
107 109
};
108 110
Responsive_table_widget.prototype.init = function () {
109 111
    'use strict';
110
-