* A bit of work on VerticalMenuView

* Inheritance updates for Views
* Fixes and better handling of MCI factory
This commit is contained in:
Bryan Ashby 2014-10-31 16:25:11 -06:00
parent c3aa4c44e2
commit edc8266310
12 changed files with 125 additions and 73 deletions

View file

@ -33,6 +33,9 @@ function View(client, options) {
this.position = { x : 0, y : 0 };
this.dimens = { height : 1, width : 0 };
this.textStyle = this.options.textStyle || 'normal';
this.focusTextStyle = this.options.focusTextStyle || this.textStyle;
if(this.options.id) {
this.setId(this.options.id);
}
@ -41,6 +44,8 @@ function View(client, options) {
this.setPosition(this.options.position);
}
this.isPasswordTextStyle = 'P' === this.textStyle || 'password' === this.textStyle;
// :TODO: Don't allow width/height > client.term
if(this.options.dimens && this.options.dimens.height) {
this.dimens.height = this.options.dimens.height;