mofron-comp-appbase
Advanced tools
Comparing version 0.1.8 to 0.1.9
32
index.js
@@ -51,5 +51,8 @@ /** | ||
try { | ||
bg.height( | ||
window.innerHeight - p.header().height() | ||
); | ||
let set_hei = window.innerHeight - p.header().height(); | ||
bg.height(set_hei); | ||
if (true === p.winHeight()) { | ||
p.contents().height(set_hei); | ||
} | ||
} catch (e) { | ||
@@ -162,2 +165,25 @@ console.error(e.stack); | ||
winHeight (prm) { | ||
try { | ||
if (undefined === prm) { | ||
/* getter */ | ||
return (undefined === this.m_winhei) ? false : this.m_winhei; | ||
} | ||
if ('boolean' !== typeof prm) { | ||
throw new Error('invalid parameter'); | ||
} | ||
if (true === prm) { | ||
this.contents().height( | ||
window.innerHeight - this.header().height() | ||
); | ||
} else { | ||
this.contents().height(null); | ||
} | ||
this.m_winhei = prm; | ||
} catch (e) { | ||
console.error(e.stack); | ||
throw e; | ||
} | ||
} | ||
color (clr) { | ||
@@ -164,0 +190,0 @@ try { |
{ | ||
"name": "mofron-comp-appbase", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "application base component for mofron", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8221
187