You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, in some situations, if you debug the values of this.$el.offsetWidth and this.$el.offsetHeight, they are the same across all the occurrences of the resize event (which leads me to think that they're likely caused by sub-pixel varations in the height of the object).
This is related to this issue in vue-virtual-scroller where the redundant notifications generate an infinite loop of height recalculations in the DynamicScroller component.
I think the correct behaviour should be to only trigger the resize notification if the calculated dimensions of the wrapper element have also changed.
At this line in
ResizeObserver.vue
, thenotify
event is being emitted for every detected "resize" of the_resizeObject
.However, in some situations, if you debug the values of
this.$el.offsetWidth
andthis.$el.offsetHeight
, they are the same across all the occurrences of the resize event (which leads me to think that they're likely caused by sub-pixel varations in the height of the object).This is related to this issue in
vue-virtual-scroller
where the redundant notifications generate an infinite loop of height recalculations in theDynamicScroller
component.I think the correct behaviour should be to only trigger the resize notification if the calculated dimensions of the wrapper element have also changed.
EDIT: Opened PR #8 for this
The text was updated successfully, but these errors were encountered: