Skip to content
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

Full width #6

Open
Gapz opened this issue Aug 12, 2019 · 2 comments
Open

Full width #6

Gapz opened this issue Aug 12, 2019 · 2 comments

Comments

@Gapz
Copy link

Gapz commented Aug 12, 2019

Is there an easy way to implement full width? Fixed width is not an option in this day and age.

Thank you for the great plugin!

@Gapz
Copy link
Author

Gapz commented Sep 3, 2019

@greghub Hi Greg, any progress with this?

@quodos
Copy link

quodos commented Apr 2, 2020

If anyone is looking for a temporary fix until this feature is implemented, here's how I've implemented it atm:

Add a ref-Attribute to the wrapping element:

<div ref="funnel-graph-wrapper">
    <funnel-graph :width="graphWidth" ... />
</div>

... and calculate the width using a computed property:

computed: {
    graphWidth() {
        return this.$refs['funnel-graph-wrapper'].offsetWidth;
    },
}

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

3 participants