* A bit of work on VerticalMenuView
* Inheritance updates for Views * Fixes and better handling of MCI factory
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user