Quasar: Toolbar with tabs UI is glitching

Created on 25 Feb 2019  路  9Comments  路  Source: quasarframework/quasar

What did you get as the error?

The toolbar with tabs has a weird UI glitch that oscillates back and forth.

Please see https://youtu.be/Ips9YDmNGD4 which was recorded in Chrome 72 on a Mac running High Sierra with a tab open on https://v1.quasar-framework.org/vue-components/toolbar

N.B. This behaviour also happens for me in my own web app.

What were you expecting?

No weird UI glitches.

What steps did you take, to get the error?

I just opened https://v1.quasar-framework.org/vue-components/toolbar#Example--With-Tabs in Chrome or alternatively, tried to use tabs with a toolbar in my own web app.

Most helpful comment

In future beta.9, please use the new shrink Boolean prop on QTabs when placing in a QToolbar. Added example in docs.

<template>
  <div class="q-pa-md">
    <q-toolbar class="bg-purple text-white shadow-2 rounded-borders">
      <q-btn flat label="Homepage" />
      <q-space />

      <!--
        notice shrink property since we are placing it
        as child of QToolbar
      -->
      <q-tabs v-model="tab" shrink>
        <q-tab name="tab1" label="Tab 1" />
        <q-tab name="tab2" label="Tab 2" />
        <q-tab name="tab3" label="Tab 3" />
      </q-tabs>
    </q-toolbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tab: ''
    }
  }
}
</script>

All 9 comments

Fix will be available in beta.5

Thanks, @pdanpdan and @rstoenescu !

After release you'll have to add class col-shrink to QTabs tag.

Is this something that should be added to the docs or upgrade guide?On Feb. 27, 2019 11:00 a.m., Popescu Dan notifications@github.com wrote:After release you'll have to add class col-shrink to QTabs tag.

鈥擸ou are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

I added it in the toolbar with tabs example. I don't know what to say about the upgrade guide as it wasn't working before.

having this currently with macos & chrome(Version 72.0.3626.119) on https://v1.quasar-framework.org/vue-components/toolbar firefox is not showing this issue for me.

https://gfycat.com/dimcornydungenesscrab

Actually, I was talking about the col-shrink - but I have added it to the Upgrade guide now.

In future beta.9, please use the new shrink Boolean prop on QTabs when placing in a QToolbar. Added example in docs.

<template>
  <div class="q-pa-md">
    <q-toolbar class="bg-purple text-white shadow-2 rounded-borders">
      <q-btn flat label="Homepage" />
      <q-space />

      <!--
        notice shrink property since we are placing it
        as child of QToolbar
      -->
      <q-tabs v-model="tab" shrink>
        <q-tab name="tab1" label="Tab 1" />
        <q-tab name="tab2" label="Tab 2" />
        <q-tab name="tab3" label="Tab 3" />
      </q-tabs>
    </q-toolbar>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tab: ''
    }
  }
}
</script>

I still see this happening on https://v1.quasar-framework.org/vue-components/toolbar (which looks like it is using beta.10) using Chrome 72.0.3626.121 and it looks like the shrink property is being used there.

It seems to work fine in Safari 12.0.3 and Firefox 65.0.1.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

xereda picture xereda  路  3Comments

florensiuslaylim picture florensiuslaylim  路  3Comments

tombarfoot picture tombarfoot  路  3Comments

Bangood picture Bangood  路  3Comments

adwidianjaya picture adwidianjaya  路  3Comments