Closed ryanhovland closed 5 years ago
Hi @ryanhovland you can actually pass a props called customClass
. You can define the container's height and width using this. Also, can you try passing this property :viewport="{ width: 300, height: 300 }"
? Maybe it's what you're looking for. Thanks!
@jofftiquez Passing :viewport doesn't fix it. I had to manually define a height (like my code sample above). The customClass
might work too (didn't try that yet). Either way, just wanted to mention that your sample code isn't working properly as-is. You might want to update it so people don't think the package is broken.
Thanks again for your work on this. Have a great day!
@ryanhovland great! Thank you for notifying me. :) Have a great day too!
I just tried firing up an instance of vue-croppie with your sample code, but no preview image appears above the slider. I think
.croppie-container
needs an explicit height set. I'm not sure if I'm doing something wrong, but I added the code below and then saw it properly.p.s. Thanks for your work on this package!