mofron-comp-header
Advanced tools
Comparing version 0.10.1 to 0.10.2
20
index.js
@@ -35,6 +35,7 @@ /** | ||
this.addChild(new mf.Component({})); | ||
this.wrap(this.target()); | ||
this.target(this.child()[0].target()); | ||
this.layout(new Horizon()); | ||
this.effect(new Border({ type : 'bottom' })); | ||
this.effect(new Border({ type : 'bottom', tag: this.name() + 'init' })); | ||
@@ -50,2 +51,9 @@ this.size('100%', '0.5rem'); | ||
wrap (prm) { | ||
try { return this.member('wrap', ['Base', 'Dom'], prm); } catch (e) { | ||
console.error(e.stack); | ||
throw e; | ||
} | ||
} | ||
/** | ||
@@ -63,5 +71,3 @@ * setter/getter for header height | ||
if (undefined !== val) { | ||
this.getDomChild()[0].style({ | ||
height : val | ||
}); | ||
this.wrap().style({ height : val }); | ||
} | ||
@@ -97,4 +103,4 @@ return ret; | ||
this.style({ | ||
position : 'fixed', | ||
'z-index' : 999 | ||
'position' : 'fixed', | ||
'z-index' : 999 | ||
}); | ||
@@ -121,3 +127,3 @@ } else { | ||
try { | ||
let ret = this.effect('Border').color(clr); | ||
let ret = this.effect(['Border', this.name() + 'init']).color(clr); | ||
return (undefined !== ret) ? ret[0] : ret; | ||
@@ -124,0 +130,0 @@ } catch (e) { |
{ | ||
"name": "mofron-comp-header", | ||
"version": "0.10.1", | ||
"version": "0.10.2", | ||
"description": "header component for mofron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
5669
124