Separate options for vertical and horizontal spacing of cards

This commit is contained in:
Ivan Mikheykin
2018-11-26 15:03:21 +03:00
parent 8e12d35da9
commit 54539cb35f
10 changed files with 50 additions and 33 deletions
+3 -2
View File
@@ -71,7 +71,8 @@ System.register(['app/plugins/sdk', 'lodash', 'app/core/core', 'app/core/utils/k
},
cards: {
cardMinWidth: 5,
cardSpacing: 2,
cardVSpacing: 2,
cardHSpacing: 2,
cardRound: null
},
xAxis: {
@@ -133,7 +134,7 @@ System.register(['app/plugins/sdk', 'lodash', 'app/core/core', 'app/core/utils/k
var chartWidth = _.max([panelWidth - 200, panelWidth / 2]);
var minCardWidth = _this.panel.cards.cardMinWidth;
var minSpacing = _this.panel.cards.cardSpacing;
var minSpacing = _this.panel.cards.cardHSpacing;
var maxCardsCount = Math.ceil((chartWidth - minCardWidth) / (minCardWidth + minSpacing));
var intervalMs = void 0;