[Vuejs]-Jumping Buttons on Vuetify V-Window

0👍

You can set a height in v-windows component to solve it.

https://codepen.io/vinisalves/pen/yLVGVjZ?editors=1010

<div id="app">
  <v-app id="inspire">
    <v-card
      color="black"
      dark
      flat
      tile
    >
      <v-window v-model="onboarding" style="height: 200px"> <!-- here -->
        <v-window-item
          v-for="n in length"
          :key="`card-${n}`"
        >
          <v-card
            color="transparent"
            height="200"
          >
            <v-row
              class="fill-height"
              align="center"
              justify="center"
            >
              <v-card-text>
                Transparent themed, for background-imaged slides. Background color black added for demonstration purposes.
              </v-card-text>
            </v-row>
          </v-card>
        </v-window-item>
      </v-window>
  
      <v-card-actions class="justify-space-between">
        <v-btn
          text
          @click="prev"
        >
          <v-icon>mdi-chevron-left</v-icon>
        </v-btn>
        <v-item-group
          v-model="onboarding"
          class="text-center"
          mandatory
        >
          <v-item
            v-for="n in length"
            :key="`btn-${n}`"
            v-slot="{ active, toggle }"
          >
            <v-btn
              :input-value="active"
              icon
              @click="toggle"
            >
              <v-icon>mdi-record</v-icon>
            </v-btn>
          </v-item>
        </v-item-group>
        <v-btn
          text
          @click="next"
        >
          <v-icon>mdi-chevron-right</v-icon>
        </v-btn>
      </v-card-actions>
    </v-card>
  </v-app>
</div>

Leave a comment