diff --git a/packages/grafana-ui/src/components/VizRepeater/VizRepeater.tsx b/packages/grafana-ui/src/components/VizRepeater/VizRepeater.tsx index 9380a75720f..b18680ba77c 100644 --- a/packages/grafana-ui/src/components/VizRepeater/VizRepeater.tsx +++ b/packages/grafana-ui/src/components/VizRepeater/VizRepeater.tsx @@ -145,7 +145,9 @@ export class VizRepeater extends PureComponent, State> let vizHeight = height; let vizWidth = width; - switch (this.getOrientation()) { + let resolvedOrientation = this.getOrientation(); + + switch (resolvedOrientation) { case VizOrientation.Horizontal: repeaterStyle.flexDirection = 'column'; itemStyles.marginBottom = `${itemSpacing}px`; @@ -170,7 +172,13 @@ export class VizRepeater extends PureComponent, State> {values.map((value, index) => { return (
- {renderValue({ value, width: vizWidth, height: vizHeight, alignmentFactors, orientation })} + {renderValue({ + value, + width: vizWidth, + height: vizHeight, + alignmentFactors, + orientation: resolvedOrientation, + })}
); })}