Fixed Rouge Scolling Issue
This commit is contained in:
parent
a28e17b4b2
commit
0627b3d40b
|
@ -54,7 +54,12 @@ export default function Editor(
|
|||
|
||||
self.validate();
|
||||
});
|
||||
|
||||
domEvent.bind(this._parent, 'wheel', function(event) {
|
||||
// stop propagation and handle scroll differently
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
});
|
||||
|
||||
// Check that the currently selected bpmn task is a script task and enable or disable coding window appropriately
|
||||
eventBus.on('selection.changed', function (context) {
|
||||
if (self.isOpen()) {
|
||||
|
@ -72,10 +77,11 @@ export default function Editor(
|
|||
});
|
||||
|
||||
eventBus.on('editor.validate.response', function (response) {
|
||||
if(response.type == "ok"){ // ? passing vs type
|
||||
|
||||
if(response.type == "error"){
|
||||
} else {
|
||||
response.msg; // Show Error Response
|
||||
if (response.passing){
|
||||
// Update Status
|
||||
}
|
||||
}
|
||||
self._eventBus.fire("editor.toolbar.update");
|
||||
});
|
||||
|
@ -148,7 +154,9 @@ Editor.prototype._init = function () {
|
|||
run_btn.setAttribute("id", "run_btn");
|
||||
|
||||
// ? I'm pretty sure I can just create a template string that will hold all these definitions but I'll have to get into that
|
||||
|
||||
|
||||
this.scripts = [];
|
||||
|
||||
var scripts_menu_container = document.createElement('div');
|
||||
domClasses(scripts_menu_container).add('dropdown');
|
||||
|
||||
|
@ -164,6 +172,8 @@ Editor.prototype._init = function () {
|
|||
|
||||
scripts_menu_container.appendChild(scripts_menu);
|
||||
//--------------------------------------------------------//
|
||||
this.objects = [];
|
||||
|
||||
var objects_menu_container = document.createElement('div');
|
||||
domClasses(objects_menu_container).add('dropdown');
|
||||
|
||||
|
@ -193,13 +203,6 @@ Editor.prototype._init = function () {
|
|||
|
||||
this._eventBus.fire('editor.toolbar.update');
|
||||
};
|
||||
Editor.prototype.updateObjectsMenu = function(){
|
||||
|
||||
}
|
||||
|
||||
Editor.prototype.updateScriptsMenu = function(){
|
||||
|
||||
}
|
||||
|
||||
Editor.prototype.validate = function () {
|
||||
this._eventBus.fire('editor.validate.request', { code: this._codestore.value });
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "diagram-js-code-editor",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.6",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
Loading…
Reference in New Issue