FilterToolbar.js (tine20-2020.08.3) | : | FilterToolbar.js (tine20-2020.08.4) | ||
---|---|---|---|---|
skipping to change at line 510 | skipping to change at line 510 | |||
fixWidths: function() { | fixWidths: function() { | |||
var aw = this.getWidth()-250, | var aw = this.getWidth()-250, | |||
dim = { | dim = { | |||
'tw-ftb-frow-field': Math.floor(aw*0.45), | 'tw-ftb-frow-field': Math.floor(aw*0.45), | |||
'tw-ftb-frow-operator': Math.floor(aw*0.17), | 'tw-ftb-frow-operator': Math.floor(aw*0.17), | |||
'tw-ftb-frow-value': Math.floor(aw*0.38) | 'tw-ftb-frow-value': Math.floor(aw*0.38) | |||
}; | }; | |||
for (var cls in dim) { | for (var cls in dim) { | |||
this.el.select('.' + cls).setWidth(dim[cls]); | this.el.select('.' + cls).setWidth(dim[cls]); | |||
this.el.select('.' + cls + ' div[class^=x-form-field-wrap] *[id^=ext -comp-]').each(function(el) { | this.el.select('.' + cls + ' div[class^=x-form-field-wrap] *').each( function(el) { | |||
var cmp = Ext.getCmp(el.id); | var cmp = Ext.getCmp(el.id); | |||
if (cmp && !cmp.isInnerFTBCmp) { | if (cmp && !cmp.isInnerFTBCmp) { | |||
var width = dim[cls] + (cmp.FTBWidthCorrection || 0); | var width = dim[cls] + (cmp.FTBWidthCorrection || 0); | |||
if (cmp.wrap) { | if (cmp.wrap) { | |||
cmp.wrap.setWidth(width); | cmp.wrap.setWidth(width); | |||
} | } | |||
cmp.setWidth(width); | cmp.setWidth(width); | |||
} | } | |||
}); | }); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |