修复点confirm事件编辑器的输入文本不消失的bug

This commit is contained in:
YouWei Zhao 2018-03-15 16:45:17 +08:00
parent 1f221a1600
commit 1c45bfee3f
2 changed files with 17 additions and 3 deletions

View File

@ -181,4 +181,5 @@ fs.readdir(path, callback)
目前主体部分使用了 0-15,75,100
blockly使用 200 ,多行文本编辑器使用 300
blockly使用 200,201
多行文本编辑器使用 300

View File

@ -336,8 +336,21 @@ editor_blockly.import = function(id_){
return true;
}
editor_blockly.show = function(){document.getElementById('left6').style='';}
editor_blockly.hide = function(){document.getElementById('left6').style='z-index:-1;opacity: 0;';}
var blocklyWidgetDiv = document.getElementsByClassName('blocklyWidgetDiv');
editor_blockly.show = function(){
document.getElementById('left6').style='';
for(var ii =0,node;node=blocklyWidgetDiv[ii];ii++){
node.style.zIndex = 201;
node.style.opacity = '';
}
}
editor_blockly.hide = function(){
document.getElementById('left6').style='z-index:-1;opacity: 0;';
for(var ii =0,node;node=blocklyWidgetDiv[ii];ii++){
node.style.zIndex = -1;
node.style.opacity = 0;
}
}
editor_blockly.cancel = function(){
editor_blockly.id='';