diff --git a/amd/src/page-myreport.js b/amd/src/page-myreport.js index 35d95ce..33a0f22 100644 --- a/amd/src/page-myreport.js +++ b/amd/src/page-myreport.js @@ -82,16 +82,7 @@ debug.enable(); }).fail(notification.exception); }, - created() { - this.$root.$on('redrawLines',()=>{ - // Ugly hack, but currently the only way to properly fix scrollablility in the lines - fixLineWrappers(); - }); - }, - updated() { - // Ugly hack, but currently the only way to properly fix scrollablility in the lines - setTimeout(fixLineWrappers, 50); - }, + methods: { }, diff --git a/amd/src/page-view-plan.js b/amd/src/page-view-plan.js index bc8ce4c..ade5c7e 100644 --- a/amd/src/page-view-plan.js +++ b/amd/src/page-view-plan.js @@ -12,7 +12,7 @@ import Vue from './vue'; import Debugger from './debugger'; import {load_strings} from './string-helper'; -import {ProcessStudyplan, fixLineWrappers} from './studyplan-processor'; +import {ProcessStudyplan} from './studyplan-processor'; import TSComponents from './treestudyplan-components'; Vue.use(TSComponents); @@ -49,7 +49,6 @@ let strings = load_strings({ const in_systemcontext = (contextid <= 1); - window.addEventListener('resize',fixLineWrappers); let app = new Vue({ el: '#root', data: { @@ -66,18 +65,7 @@ let strings = load_strings({ }, usedcontexts: [], }, - async created() { - this.$root.$on('redrawLines',()=>{ - // Ugly hack, but currently the only way to properly fix scrollablility in the lines - fixLineWrappers(); - }); - }, - updated() { - // Ugly hack, but currently the only way to properly fix scrollablility in the lines - setTimeout(fixLineWrappers, 50); - }, async mounted() { - fixLineWrappers(); call([{ methodname: 'local_treestudyplan_list_studyplans', args: {context_id: contextid} diff --git a/amd/src/report-viewer-components.js b/amd/src/report-viewer-components.js index 72699f1..887e6e1 100644 --- a/amd/src/report-viewer-components.js +++ b/amd/src/report-viewer-components.js @@ -10,7 +10,6 @@ import {load_strings} from './string-helper'; import {call} from 'core/ajax'; import notification from 'core/notification'; import {svgarcpath} from './svgarc'; -//import {fixLineWrappers} from './studyplan-processor'; import Debugger from './debugger'; // Make π available as a constant