[SSE] Change style dropdown menu of style cell

This commit is contained in:
Alexei Koshelev 2022-09-09 23:21:45 +03:00
parent a7f0d259c4
commit 832641ec5f
2 changed files with 10 additions and 6 deletions

View file

@ -1336,9 +1336,9 @@ define([
menu.menuAlignEl = cmp.cmpEl;
menu.menuAlign = 'tl-tl';
var dataviewEl = $(menu.menuRoot.find('.dataview').get(0)),
paddings = parseFloat(groupContainerEl.css('padding-left')) + parseFloat(groupContainerEl.css('padding-right')) + parseFloat(dataviewEl.css('padding-left')) + parseFloat(dataviewEl.css('padding-right')),
menuWidth = + columnCount * (itemWidth + itemMargin) + paddings,
var menuPickerEl = $(menu.menuRoot.find('.menu-picker-container').get(0)),
paddings = 15 + parseFloat(groupContainerEl.css('padding-left')) + parseFloat(groupContainerEl.css('padding-right')) + parseFloat(menuPickerEl.css('margin-left')) + parseFloat(menuPickerEl.css('margin-right')),
menuWidth = Math.ceil(+ columnCount * (itemWidth + itemMargin) + paddings),
buttonOffsetLeft = cmp.openButton.$el.offset().left;
if (menuWidth>Common.Utils.innerWidth())
menuWidth = Math.max(Math.floor((Common.Utils.innerWidth()-paddings)/(itemMargin + itemWidth)), 2) * (itemMargin + itemWidth) + paddings;

View file

@ -169,8 +169,13 @@
}
.combo-cell-styles {
.menu-picker-container .dataview {
padding: 10px 15px 0 5px;
.dropdown-menu {
padding: 5px 0px !important;
}
.menu-picker-container {
margin: 0px 5px;
}
.group-description {
@ -182,7 +187,6 @@
padding-bottom: 1px;
padding-right: 1px;
}
.grouped-data .group-items-container .item {
margin: 0px calc(-1 * @scaled-one-px-value) calc(-1 * @scaled-one-px-value) 0px;
box-shadow: none;