mofron-comp-header
Advanced tools
Comparing version 0.7.0 to 0.7.1
20
index.js
@@ -32,3 +32,2 @@ /** | ||
style : { | ||
'width' : '100%', | ||
'border-bottom' : 'solid 1px lightgray', | ||
@@ -51,4 +50,4 @@ 'float' : 'left' | ||
/* set default height */ | ||
this.height(50); | ||
/* set default size */ | ||
this.size('100%', 50); | ||
this.bind(true); | ||
@@ -89,12 +88,9 @@ | ||
try { | ||
if (undefined === val) { | ||
/* getter */ | ||
return mf.func.getLength(this.style('height')); | ||
let ret = super.height(val); | ||
if (undefined !== ret) { | ||
return ret; | ||
} | ||
/* setter */ | ||
var set_hei = { | ||
'height' : ('number' === typeof val) ? (val + 'px') : val | ||
}; | ||
this.style(set_hei); | ||
this.adom().child()[1].style(set_hei); | ||
this.adom().child()[1].style({ | ||
'height' : ('number' === typeof val) ? val+'px' : px | ||
}); | ||
} catch (e) { | ||
@@ -101,0 +97,0 @@ console.error(e.stack); |
{ | ||
"name": "mofron-comp-header", | ||
"version": "0.7.0", | ||
"version": "0.7.1", | ||
"description": "header component for mofron", | ||
@@ -17,3 +17,3 @@ "main": "index.js", | ||
"keywords": [ | ||
"front end" | ||
"front-end" | ||
], | ||
@@ -20,0 +20,0 @@ "author": "simparts", |
6151
137