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? 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
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
![image](https://user-images.githubusercontent.com/13537973/104452514-12b6c280-55de-11eb-9770-ec47921caa76.png)
![image](https://user-images.githubusercontent.com/13537973/104452835-83f67580-55de-11eb-957c-1f5968d834a3.png)
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: