Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Vue 3 <component :is /> and sizeToContent #3059

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
esoty6 opened this issue May 27, 2025 · 1 comment
Closed

Vue 3 <component :is /> and sizeToContent #3059

esoty6 opened this issue May 27, 2025 · 1 comment

Comments

@esoty6
Copy link

esoty6 commented May 27, 2025

Hi
I have a problem in Vue 3 with rendering components in grid-stack.
I tried using GridStack.renderCB() along with a custom GridStackItemComponent that renders components via (I wanted to use sizeToContent for custom components), but I got to the point where I had to pass an appContext (I use i18n, vuetify, etc., so they are required for the components I want to render) for the widgets I created and it caused the app to crash.

I'm currently rendering them in the template with v-for, but the sizeToContent doesn't work properly - say the widget is 1x1 in size, but it overflows and obscures other rows

Do you have any ideas what I am doing wrong or what I need to do to make it work?

@adumesny
Copy link
Member

use slack for questions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants