vue-agile icon indicating copy to clipboard operation
vue-agile copied to clipboard

Reload doesn't reapply slide widths

Open flxsource opened this issue 5 years ago • 3 comments

When using reload after changing the contents of the slot (ie, to apply a filter to the slides if the widthSlide property hasn't changed it isn't applied to the new elements. This is because the widthSlide is only applied in the watcher when it changes, and the value remains the same.

Codepen

flxsource avatar Jul 14 '20 16:07 flxsource

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.95. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Jul 14 '20 16:07 issue-label-bot[bot]

I've managed to work around the issue using the changes in #183 which sets the container width to 0, and then reverts it again. This seems pretty hacky though - is there a better approach?

flxsource avatar Jul 14 '20 16:07 flxsource

As a workaround I do it via v-if, so in this way I re-initiate vue-agile.

TitanFighter avatar Jul 15 '20 10:07 TitanFighter