Skip to content

Commit 8d3b889

Browse files
committed
Fix - VueUiBullet - Account for padding in useResponsive
1 parent 5ab1fc6 commit 8d3b889

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/vue-ui-bullet.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,16 @@ segments: [
129129
130130
const debug = computed(() => !!FINAL_CONFIG.value.debug);
131131
132+
const padding = computed(() => {
133+
const { top, right, bottom, left } = FINAL_CONFIG.value.style.chart.padding;
134+
return {
135+
top,
136+
right,
137+
bottom,
138+
left
139+
}
140+
})
141+
132142
function prepareChart() {
133143
if(objectIsEmpty(FINAL_DATASET.value)) {
134144
error({
@@ -171,7 +181,8 @@ function prepareChart() {
171181
chart: bulletChart.value,
172182
title: FINAL_CONFIG.value.style.chart.title.text ? chartTitle.value : null,
173183
legend: FINAL_CONFIG.value.style.chart.legend.show ? chartLegend.value : null,
174-
source: source.value
184+
source: source.value,
185+
padding: padding.value
175186
});
176187
177188
const legendOffset = FINAL_CONFIG.value.style.chart.legend.show ? 24 : 0;

0 commit comments

Comments
 (0)