UNPKG

phaser4-rex-plugins

Version:
23 lines (19 loc) 743 B
import ResolveHeightBase from '../basesizer/ResolveHeight.js'; var ResolveHeight = function (height) { var height = ResolveHeightBase.call(this, height); // Get proportionLength if ((height !== undefined) && (this.orientation === 1) && (this.proportionLength === undefined)) { var remainder = height - this.childrenHeight; if (remainder > 0) { remainder = height - this.getChildrenHeight(false); this.proportionLength = remainder / this.childrenProportion; } else { this.proportionLength = 0; if (remainder < 0) { // Warning } } } return height; } export default ResolveHeight;