0001-js-don-t-set-responsive-table-width-for-grid-widgets.patch
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 |
- |