|
|
@ -78,10 +78,9 @@ class FlexContainerComponent extends Component { |
|
|
|
|
|
|
|
/** |
|
|
|
* |
|
|
|
* @param {number} [recessFraction=0.0] recessFraction a fraction/percentage of the recess |
|
|
|
* @param {number} [recessFraction=0.0] recessFraction a fraction/percentage (<1.0) of the recess |
|
|
|
* that should be left out before distributing the remaining space. |
|
|
|
* @param {number} [gapPerChild=1] gapPerChild the gap per child, therefore inbetween children |
|
|
|
* that shouldn't be distributed to the children |
|
|
|
* @param {number} [gapPerChild=1] gapPerChild the gap per child, therefore the recess between children |
|
|
|
*/ |
|
|
|
_distributingSpacing(recessFraction = 0.0, gapPerChild = 1) { |
|
|
|
if (this._children && this._children.length > 1) { |
|
|
@ -110,13 +109,14 @@ class FlexContainerComponent extends Component { |
|
|
|
* Distributes the spacing of the childrens evengly, |
|
|
|
* according to the flexdirection of this component. |
|
|
|
* By default this will be executed imediately when called. |
|
|
|
* The spacing is distributed by: |
|
|
|
* 100 - 100 * recessFraction - (children) * gapPerChild |
|
|
|
* |
|
|
|
* @param {boolean} [rightNow=true] if set to false it will set properties accordingly |
|
|
|
* so that the distribution will be executed on generate |
|
|
|
* @param {number} [recessFraction=0.0] recessFraction a fraction/percentage of the recess |
|
|
|
* @param {number} [recessFraction=0.0] recessFraction a fraction/percentage (<1.0) of the recess |
|
|
|
* that should be left out before distributing the remaining space. |
|
|
|
* @param {number} [gapPerChild=1] gapPerChild the gap per child, therefore inbetween children |
|
|
|
* that shouldn't be distributed to the children |
|
|
|
* @param {number} [gapPerChild=1] gapPerChild the gap per child, therefore the recess between children |
|
|
|
* @returns {FlexContainerComponent} |
|
|
|
*/ |
|
|
|
distibuteSpacingEvenly(rightNow = true, recessFraction = 0.0, gapPerChild = 1) { |
|
|
|