UNPKG

phaser3-rex-plugins

Version:
16 lines (14 loc) 510 B
var GetExpandedChildHeight = function (child, parentHeight) { if (parentHeight === undefined) { parentHeight = this.height; } var childHeight; var childConfig = child.rexSizer; if (childConfig.expandHeight) { var innerHeight = parentHeight - this.space.top - this.space.bottom; var padding = childConfig.padding; childHeight = innerHeight - padding.top - padding.bottom; } return childHeight; } export default GetExpandedChildHeight;