Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(Viewer): remove outdated fix from stable16.
This broke the viewer resize and is not needed anymore.

In order to confirm this is not needed
i replaced the `beforeMount` handler with a `console.info` call
opened a text in the viewer and resized the window a few times.
The provided info only showed up once.
So the `ViewerComponent` was only mounted once as well.

Fixes #4099.

Signed-off-by: Max <[email protected]>
  • Loading branch information
max-nextcloud committed May 4, 2023
commit eeb2f81105aec4e3953b975ae309aa3e95d51666
6 changes: 0 additions & 6 deletions src/components/ViewerComponent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ export default {
default: false,
},
},
beforeMount() {
// FIXME Dirty fix to avoid recreating the component on stable16
if (typeof this.$parent.$parent !== 'undefined' && this.$parent.$parent.onResize) {
window.removeEventListener('resize', this.$parent.$parent.onResize)
}
},
}
</script>
<style lang="scss" scoped>
Expand Down