summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorportix <portix@gmx.net>2014-03-10 01:30:36 +0100
committerportix <portix@gmx.net>2014-03-10 01:30:36 +0100
commit093f0f62adbe69e79dea500b8b25f18246328242 (patch)
treec0e658667f0fc99742bb3c25d9d61ee8997ce220
parente305768e595bc012b0e0287679b732ae34bdc568 (diff)
downloaddwb-093f0f62adbe69e79dea500b8b25f18246328242.zip
Check if height is set in completion
-rw-r--r--scripts/modules/completion6
1 files changed, 6 insertions, 0 deletions
diff --git a/scripts/modules/completion b/scripts/modules/completion
index 2ffb9418..32976d9d 100644
--- a/scripts/modules/completion
+++ b/scripts/modules/completion
@@ -303,9 +303,15 @@ Object.defineProperties(Completion.prototype, {
};
this._style = JSON.stringify(this.style);
+
this._sigKeyPress = Signal("keyPress", this._onKeyPress.bind(this));
this._sigKeyRelease = Signal("keyRelease", this._onKeyRelease.bind(this));
+
bind(this.shortcut, this._bindCallback.bind(this));
+
+ if (this.height) {
+ mWidget.heightRequest = this.height;
+ }
this.onShow = this.onShow || this.onUpdate;
}
},