Removed line wrapper hack

This commit is contained in:
PMKuipers 2023-07-18 16:12:31 +02:00
parent 0f5b42f4b8
commit 448b61f8f1
3 changed files with 2 additions and 24 deletions

View file

@ -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: {
},

View file

@ -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}

View file

@ -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