Merge branch 'origin/master' into misc
Conflicts: lib/ace/virtual_renderer.js
This commit is contained in:
commit
844502fae6
4 changed files with 24 additions and 14 deletions
|
|
@ -176,10 +176,15 @@ var TextInput = function(parentNode, host) {
|
|||
if (inComposition && (!text.value || keytable[e.keyCode]))
|
||||
setTimeout(onCompositionEnd, 0);
|
||||
if ((text.value.charCodeAt(0)||0) < 129) {
|
||||
return;
|
||||
return syncProperty.call();
|
||||
}
|
||||
inComposition ? onCompositionUpdate() : onCompositionStart();
|
||||
});
|
||||
// when user presses backspace after focusing the editor
|
||||
// propertychange isn't called for the next character
|
||||
event.addListener(text, "keydown", function (e) {
|
||||
syncProperty.schedule(50);
|
||||
});
|
||||
}
|
||||
|
||||
var onSelect = function(e) {
|
||||
|
|
|
|||
|
|
@ -335,7 +335,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
|
||||
// }.bind(this), 500)
|
||||
|
||||
if (!this.$size.scrollerHeight)
|
||||
if (!this.$size.scrollerHeight || (!width && !height))
|
||||
return this.resizing = 0;
|
||||
|
||||
if (force)
|
||||
|
|
@ -344,7 +344,7 @@ var VirtualRenderer = function(container, theme) {
|
|||
if (force)
|
||||
this.$renderChanges(changes, true);
|
||||
else
|
||||
this.$loop.schedule(changes);
|
||||
this.$loop.schedule(changes || this.$changes);
|
||||
|
||||
if (this.resizing)
|
||||
this.resizing = 0;
|
||||
|
|
@ -730,14 +730,14 @@ var VirtualRenderer = function(container, theme) {
|
|||
};
|
||||
|
||||
this.$renderChanges = function(changes, force) {
|
||||
if ((!this.session || !this.container.offsetWidth) || (!changes && !force)) {
|
||||
this.$changes |= changes;
|
||||
return;
|
||||
}
|
||||
if (this.$changes) {
|
||||
changes |= this.$changes;
|
||||
this.$changes = 0;
|
||||
}
|
||||
if ((!this.session || !this.container.offsetWidth) || (!changes && !force)) {
|
||||
this.$changes |= changes;
|
||||
return;
|
||||
}
|
||||
if (!this.$size.width)
|
||||
return this.onResize(true);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue