feat(templating): set default min span to 4, fixes #5662

This commit is contained in:
Torkel Ödegaard 2016-07-26 17:20:20 +02:00
parent 9f14b209bd
commit 5155c8a753

View File

@ -177,7 +177,7 @@ export class DynamicDashboardSrv {
_.each(selected, (option, index) => {
var copy = this.getPanelClone(panel, row, index);
copy.span = Math.max(12 / selected.length, panel.minSpan);
copy.span = Math.max(12 / selected.length, panel.minSpan || 4);
copy.scopedVars = copy.scopedVars || {};
copy.scopedVars[variable.name] = option;
});