A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/d3953f7 below:

recalculate styles on window resize (#1394) · vuematerial/vue-material@d3953f7 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-1

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-1

lines changed Original file line number Diff line number Diff line change

@@ -186,6 +186,8 @@

186 186

if ('ResizeObserver' in window) {

187 187

this.resizeObserver = new window.ResizeObserver(this.calculateStepperPos)

188 188

this.resizeObserver.observe(this.$el)

189 +

} else {

190 +

window.addEventListener('resize', this.calculateStepperPos)

189 191

}

190 192 191 193

if (steppersContent) {

@@ -244,7 +246,12 @@

244 246

this.setupObservers()

245 247

this.setupWatchers()

246 248

}, 100)

247 -

}

249 +

},

250 +

beforeDestroy () {

251 +

if (!('ResizeObserver' in window)) {

252 +

window.removeEventListener('resize', this.calculateStepperPos)

253 +

}

254 +

},

248 255

})

249 256

</script>

250 257

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