chore: use width property

This commit is contained in:
kolaente 2022-07-20 21:53:21 +02:00
parent 40f7871f1b
commit ecaa09285b
No known key found for this signature in database
GPG key ID: F40E70337AB24C9B

View file

@ -1,6 +1,5 @@
<template> <template>
<div class="gantt-container"> <div class="gantt-container">
<div :style="{'width': ganttChartWidth + 'px'}">
<g-gantt-chart <g-gantt-chart
:chart-start="`${dateFrom} 00:00`" :chart-start="`${dateFrom} 00:00`"
:chart-end="`${dateTo} 23:59`" :chart-end="`${dateTo} 23:59`"
@ -10,6 +9,8 @@
:grid="true" :grid="true"
@dragend-bar="updateTask" @dragend-bar="updateTask"
@dblclick-bar="openTask" @dblclick-bar="openTask"
font="'Open Sans', sans-serif"
:width="ganttChartWidth + 'px'"
> >
<g-gantt-row <g-gantt-row
v-for="(bar, k) in ganttBars" v-for="(bar, k) in ganttBars"
@ -19,7 +20,6 @@
/> />
</g-gantt-chart> </g-gantt-chart>
</div> </div>
</div>
<form <form
@submit.prevent="createTask()" @submit.prevent="createTask()"
class="add-new-task" class="add-new-task"