[SSE] Added auto width change in PivotTable component

This commit is contained in:
Alexei Koshelev 2022-09-19 01:24:46 +03:00
parent 9d61b0a2d8
commit a98c4e82bc
2 changed files with 4 additions and 2 deletions

View file

@ -352,7 +352,6 @@
.combo-template(60px); .combo-template(60px);
top: -4px; top: -4px;
padding-right: 12px;
position: absolute; position: absolute;
.more-container & { .more-container & {

View file

@ -89,7 +89,7 @@ define([
'</div>' + '</div>' +
'</div>' + '</div>' +
'<div class="separator long invisible"></div>' + '<div class="separator long invisible"></div>' +
'<div class="group flex small" id="slot-field-pivot-styles" style="width: 324px;max-width: 324px;min-width: 105px;" data-group-width="324px">' + '<div class="group flex small" id="slot-field-pivot-styles" style="width: 100%; min-width: 105px;" data-group-width="100%">' +
'</div>' + '</div>' +
'</section>'; '</section>';
@ -274,11 +274,14 @@ define([
this.pivotStyles = new Common.UI.ComboDataView({ this.pivotStyles = new Common.UI.ComboDataView({
cls : 'combo-pivot-template', cls : 'combo-pivot-template',
style : 'min-wdith: 91px; max-width: 505px;',
enableKeyEvents : true, enableKeyEvents : true,
itemWidth : 61, itemWidth : 61,
itemHeight : 49, itemHeight : 49,
menuMaxHeight : 300, menuMaxHeight : 300,
groups : new Common.UI.DataViewGroupStore(), groups : new Common.UI.DataViewGroupStore(),
autoWidth : true,
lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit, _set.pivotLock, _set['FormatCells'], _set['PivotTables']], lock : [_set.lostConnect, _set.coAuth, _set.noPivot, _set.selRangeEdit, _set.pivotLock, _set['FormatCells'], _set['PivotTables']],
beforeOpenHandler: function(e) { beforeOpenHandler: function(e) {
var cmp = this, var cmp = this,