+13
-15
lines changedFilter options
+13
-15
lines changed Original file line number Diff line number Diff line change
@@ -207,22 +207,20 @@
207
207
}
208
208
}
209
209
},
210
+
callResizeFunctions () {
211
+
this.setIndicatorStyles()
212
+
this.calculateTabPos()
213
+
},
210
214
setupObservers () {
211
-
if ('ResizeObserver' in window) {
212
-
this.resizeObserver = new window.ResizeObserver(this.setIndicatorStyles)
213
-
this.resizeObserver.observe(this.$el)
214
-
} else {
215
-
this.resizeObserver = MdObserveElement(this.$el.querySelector('.md-tabs-content'), {
216
-
childList: true,
217
-
characterData: true,
218
-
subtree: true
219
-
}, () => {
220
-
this.setIndicatorStyles()
221
-
this.calculateTabPos()
222
-
})
215
+
this.resizeObserver = MdObserveElement(this.$el.querySelector('.md-tabs-content'), {
216
+
childList: true,
217
+
characterData: true,
218
+
subtree: true
219
+
}, () => {
220
+
this.callResizeFunctions()
221
+
})
223
222
224
-
window.addEventListener('resize', this.setIndicatorStyles)
225
-
}
223
+
window.addEventListener('resize', this.callResizeFunctions)
226
224
},
227
225
setupWatchers () {
228
226
if (this.mdSyncRoute) {
@@ -268,7 +266,7 @@
268
266
this.resizeObserver.disconnect()
269
267
}
270
268
271
-
window.removeEventListener('resize', this.setIndicatorStyles)
269
+
window.removeEventListener('resize', this.callResizeFunctions)
272
270
this.$refs.navigation.removeEventListener('transitionend', this.setIndicatorStyles)
273
271
}
274
272
})
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4