How to set up toolbar to be fixed in vuetify?
up vote
0
down vote
favorite
In vuetify I use a toolbar
<v-toolbar dark color="primary">
<v-toolbar-side-icon @click.stop="drawer.drawer = !drawer.drawer"></v-toolbar-side-icon>
<v-toolbar-title>drawer.title</v-toolbar-title>
</v-toolbar>
<router-view v-bind:page="pageData"></router-view>
But I want to make it fixed, and not overlap with the vuerouter contents. How can I do that? I tried putting fixed
but it still overlaps.
Thanks
javascript vue.js vuejs2 vuetify.js
add a comment |
up vote
0
down vote
favorite
In vuetify I use a toolbar
<v-toolbar dark color="primary">
<v-toolbar-side-icon @click.stop="drawer.drawer = !drawer.drawer"></v-toolbar-side-icon>
<v-toolbar-title>drawer.title</v-toolbar-title>
</v-toolbar>
<router-view v-bind:page="pageData"></router-view>
But I want to make it fixed, and not overlap with the vuerouter contents. How can I do that? I tried putting fixed
but it still overlaps.
Thanks
javascript vue.js vuejs2 vuetify.js
could you provide a screenshot of what you're getting?
– Boussadjra Brahim
Nov 9 at 0:13
fixed it with this codepen.io/anon/pen/boxqwY
– omega
Nov 9 at 0:14
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
In vuetify I use a toolbar
<v-toolbar dark color="primary">
<v-toolbar-side-icon @click.stop="drawer.drawer = !drawer.drawer"></v-toolbar-side-icon>
<v-toolbar-title>drawer.title</v-toolbar-title>
</v-toolbar>
<router-view v-bind:page="pageData"></router-view>
But I want to make it fixed, and not overlap with the vuerouter contents. How can I do that? I tried putting fixed
but it still overlaps.
Thanks
javascript vue.js vuejs2 vuetify.js
In vuetify I use a toolbar
<v-toolbar dark color="primary">
<v-toolbar-side-icon @click.stop="drawer.drawer = !drawer.drawer"></v-toolbar-side-icon>
<v-toolbar-title>drawer.title</v-toolbar-title>
</v-toolbar>
<router-view v-bind:page="pageData"></router-view>
But I want to make it fixed, and not overlap with the vuerouter contents. How can I do that? I tried putting fixed
but it still overlaps.
Thanks
javascript vue.js vuejs2 vuetify.js
javascript vue.js vuejs2 vuetify.js
asked Nov 8 at 23:31
omega
9,45844128255
9,45844128255
could you provide a screenshot of what you're getting?
– Boussadjra Brahim
Nov 9 at 0:13
fixed it with this codepen.io/anon/pen/boxqwY
– omega
Nov 9 at 0:14
add a comment |
could you provide a screenshot of what you're getting?
– Boussadjra Brahim
Nov 9 at 0:13
fixed it with this codepen.io/anon/pen/boxqwY
– omega
Nov 9 at 0:14
could you provide a screenshot of what you're getting?
– Boussadjra Brahim
Nov 9 at 0:13
could you provide a screenshot of what you're getting?
– Boussadjra Brahim
Nov 9 at 0:13
fixed it with this codepen.io/anon/pen/boxqwY
– omega
Nov 9 at 0:14
fixed it with this codepen.io/anon/pen/boxqwY
– omega
Nov 9 at 0:14
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
- Add the
app
attribute to the toolbar - Put your router content inside a
v-content
element. - Finally, make sure the whole shebang is inside a
v-app
element.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
- Add the
app
attribute to the toolbar - Put your router content inside a
v-content
element. - Finally, make sure the whole shebang is inside a
v-app
element.
add a comment |
up vote
1
down vote
- Add the
app
attribute to the toolbar - Put your router content inside a
v-content
element. - Finally, make sure the whole shebang is inside a
v-app
element.
add a comment |
up vote
1
down vote
up vote
1
down vote
- Add the
app
attribute to the toolbar - Put your router content inside a
v-content
element. - Finally, make sure the whole shebang is inside a
v-app
element.
- Add the
app
attribute to the toolbar - Put your router content inside a
v-content
element. - Finally, make sure the whole shebang is inside a
v-app
element.
answered Nov 9 at 2:21
Steven Spungin
6,34322230
6,34322230
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53217709%2fhow-to-set-up-toolbar-to-be-fixed-in-vuetify%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
could you provide a screenshot of what you're getting?
– Boussadjra Brahim
Nov 9 at 0:13
fixed it with this codepen.io/anon/pen/boxqwY
– omega
Nov 9 at 0:14