Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
input.parentNode.insertBefore(this.output, input.nextSibling);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
;
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints cptFocusPopup';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);
this.outputDirection.addEventListener('change', resizer);
resizer();
input.parentNode.insertBefore(this.output, input.nextSibling);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
;
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints cptFocusPopup';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);
this.outputDirection.addEventListener('change', resizer);
resizer();
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);
this.outputDirection.addEventListener('change', resizer);
resizer();
input.parentNode.insertBefore(this.output, input.nextSibling);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);
this.outputDirection.addEventListener('change', resizer);
resizer();
// Note: characterWidth can be a float!
measureNode.innerHTML = lang.stringRepeat("Xy", n);
if (this.element.ownerDocument.body) {
this.element.ownerDocument.body.appendChild(measureNode);
} else {
var container = this.element.parentNode;
while (!dom.hasCssClass(container, "ace_editor"))
container = container.parentNode;
container.appendChild(measureNode);
}
}
var style = this.$measureNode.style;
var computedStyle = dom.computedStyle(this.element);
for (var prop in this.$fontStyles)
style[prop] = computedStyle[prop];
var size = {
height: this.$measureNode.offsetHeight,
width: this.$measureNode.offsetWidth / (n * 2)
};
// Size and width can be null if the editor is not visible or
// detached from the document
if (size.width == 0 && size.height == 0)
return null;
return size;
};
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);
this.outputDirection.addEventListener('change', resizer);
resizer();
this.output = this.doc.createElement('div');
this.output.id = 'cockpitOutput';
this.output.className = 'cptFocusPopup';
input.parentNode.insertBefore(this.output, input.nextSibling);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
;
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints cptFocusPopup';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.output = this.doc.createElement('div');
this.output.id = 'cockpitOutput';
this.output.className = 'cptOutput';
input.parentNode.insertBefore(this.output, input.nextSibling);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
;
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints cptFocusPopup';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);
this.outputDirection.addEventListener('change', resizer);
resizer();
this.output.id = 'cockpitOutput';
this.output.className = 'cptFocusPopup';
input.parentNode.insertBefore(this.output, input.nextSibling);
var setMaxOutputHeight = function() {
this.output.style.maxHeight = this.outputHeight.get() + 'px';
}.bind(this);
this.outputHeight.addEventListener('change', setMaxOutputHeight);
setMaxOutputHeight();
}
this.completer = this.doc.createElement('div');
this.completer.className = 'cptCompletion VALID';
;
this.completer.style.color = dom.computedStyle(input, "color");
this.completer.style.fontSize = dom.computedStyle(input, "fontSize");
this.completer.style.fontFamily = dom.computedStyle(input, "fontFamily");
this.completer.style.fontWeight = dom.computedStyle(input, "fontWeight");
this.completer.style.fontStyle = dom.computedStyle(input, "fontStyle");
input.parentNode.insertBefore(this.completer, input.nextSibling);
// Transfer background styling to the completer.
this.completer.style.backgroundColor = input.style.backgroundColor;
input.style.backgroundColor = 'transparent';
this.hinter = this.doc.createElement('div');
this.hinter.className = 'cptHints cptFocusPopup';
input.parentNode.insertBefore(this.hinter, input.nextSibling);
var resizer = this.resizer.bind(this);
event.addListener(this.win, 'resize', resizer);
this.hintDirection.addEventListener('change', resizer);