1
1
<template >
2
- <v-container class =" grey lighten-5 mb-6 blockly -toolbox-editor" >
3
- <v-row class = " fill-height " >
4
- <v-col class =" pa-2 fill-height " >
2
+ <v-container class =" grey lighten-5 mb-6 _blockly -toolbox-editor" >
3
+ <v-row >
4
+ <v-col class =" pa-2 blockly-toolbox-editor " >
5
5
<blockly-workspace
6
6
ref =" workspace_toolbox_editor"
7
7
:settings =" settings"
@@ -107,8 +107,6 @@ export default {
107
107
const toolbox_full = require (' ../assets/toolbox_adv.json' );
108
108
this .toolbox_editor = toolbox_full;
109
109
110
- // this.loadMusicPackages();
111
-
112
110
if (this .toolbox_in ) {
113
111
this .toolbox = this .toolbox_in ;
114
112
}
@@ -128,25 +126,6 @@ export default {
128
126
}
129
127
},
130
128
methods: {
131
- /*
132
- loadMusicPackages() {
133
- this.$axios.get(`${this.CB}/listMusicPackages`).then((result) => {
134
- this.settings.music_instruments = [];
135
- this.settings.music_animals = [];
136
- const music_packages = JSON.parse(result.data);
137
- Object.entries(music_packages).forEach((key) => {
138
- const package_key = key[0];
139
- const music_package = key[1];
140
- const names = [music_package.name_IT, package_key];
141
- if (music_package.category == 'instrument') {
142
- this.settings.music_instruments.push(names);
143
- } else if (music_package.category == 'animal') {
144
- this.settings.music_animals.push(names);
145
- }
146
- });
147
- });
148
- },
149
- */
150
129
onChangeCategory () {
151
130
if (this .category_index != null
152
131
&& this .toolbox .kind == categoryToolbox) {
@@ -254,7 +233,12 @@ code {
254
233
.blocklyToolboxDiv {
255
234
z-index : 1 !important ;
256
235
}
236
+
257
237
.blockly-toolbox-editor {
258
238
height : 480px ;
259
239
}
240
+
241
+ .blocklyFlyout {
242
+ z-index : 1 !important ;
243
+ }
260
244
</style >
0 commit comments