Skip to content

Commit ca8b4f8

Browse files
committed
fix toolbox editor scroll
1 parent b667be8 commit ca8b4f8

File tree

2 files changed

+10
-26
lines changed

2 files changed

+10
-26
lines changed

src/assets/js/blockly/blocks.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
Blockly = require('blockly');
1919

20-
Blockly.HSV_SATURATION = 0.99;
21-
Blockly.HSV_VALUE = 0.99;
20+
Blockly.HSV_SATURATION = 0.9;
21+
Blockly.HSV_VALUE = 0.7;
2222

2323
const sbsPrefix = '';
2424

src/components/ToolboxEditor.vue

Lines changed: 8 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<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">
55
<blockly-workspace
66
ref="workspace_toolbox_editor"
77
:settings="settings"
@@ -107,8 +107,6 @@ export default {
107107
const toolbox_full = require('../assets/toolbox_adv.json');
108108
this.toolbox_editor = toolbox_full;
109109
110-
// this.loadMusicPackages();
111-
112110
if (this.toolbox_in) {
113111
this.toolbox = this.toolbox_in;
114112
}
@@ -128,25 +126,6 @@ export default {
128126
}
129127
},
130128
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-
*/
150129
onChangeCategory() {
151130
if (this.category_index != null
152131
&& this.toolbox.kind == categoryToolbox) {
@@ -254,7 +233,12 @@ code {
254233
.blocklyToolboxDiv {
255234
z-index: 1 !important;
256235
}
236+
257237
.blockly-toolbox-editor {
258238
height: 480px;
259239
}
240+
241+
.blocklyFlyout {
242+
z-index: 1 !important;
243+
}
260244
</style>

0 commit comments

Comments
 (0)