We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Describe the bug
function Measure(options, element) { var $el = element.$el; console.log('viewsize', element) console.log('viewsize', element.$el.offsetWidth) setTimeout(() => { console.log('viewsize setTimeout', element.$el.offsetWidth) }, 1000) var viewSize = options.isHorizontal ? $el.offsetWidth: $el.offsetHeight; var slideSize = (viewSize - Math.ceil(options.slidesPerView - 1) * options.spaceBetween) / options.slidesPerView; var boxSize = slideSize + options.spaceBetween; return { boxSize: boxSize, viewSize: viewSize, slideSize: slideSize }; }
swiper init in react useLayoutEffect
Expected behavior
Information
The text was updated successfully, but these errors were encountered:
@Jarweb Hi, Would you mind create a repo or demo to reproduce this issue?
You can use https://stackblitz.com/ , just paste demo link on this comments
Sorry, something went wrong.
@Jarweb Can you confirm this is still an issue?
No branches or pull requests
Describe the bug


function Measure(options, element) {
var $el = element.$el;
console.log('viewsize', element)
console.log('viewsize', element.$el.offsetWidth)
setTimeout(() => {
console.log('viewsize setTimeout', element.$el.offsetWidth)
}, 1000)
var viewSize = options.isHorizontal ? $el.offsetWidth: $el.offsetHeight;
var slideSize = (viewSize - Math.ceil(options.slidesPerView - 1) * options.spaceBetween) / options.slidesPerView;
var boxSize = slideSize + options.spaceBetween;
return {
boxSize: boxSize,
viewSize: viewSize,
slideSize: slideSize
};
}
swiper init in react useLayoutEffect
Expected behavior
Information
The text was updated successfully, but these errors were encountered: