Browse Source

FIX: default values for parameters were wrongfully provided

in overriding methods - there were default parameters set.
dev-feat-component_preview
chris 2 months ago
parent
commit
025573a16c
  1. 6
      src/modifier/ChainableModifier.js

6
src/modifier/ChainableModifier.js

@ -23,7 +23,7 @@ class ChainableModifier extends Modifier {
* @returns {ChainableModifier} * @returns {ChainableModifier}
*/ */
fillMaxSize(widthFraction = 1, heightFraction = 1) { fillMaxSize(widthFraction = 1, heightFraction = 1) {
return super.fillMaxSize(widthFraction = 1, heightFraction = 1); return super.fillMaxSize(widthFraction, heightFraction);
} }
/** /**
* @inheritdoc * @inheritdoc
@ -31,7 +31,7 @@ class ChainableModifier extends Modifier {
* @returns {ChainableModifier} * @returns {ChainableModifier}
*/ */
fillMaxWidth(fraction = 1) { fillMaxWidth(fraction = 1) {
return super.fillMaxWidth(fraction = 1); return super.fillMaxWidth(fraction);
} }
/** /**
* @inheritdoc * @inheritdoc
@ -39,7 +39,7 @@ class ChainableModifier extends Modifier {
* @returns {ChainableModifier} * @returns {ChainableModifier}
*/ */
fillMaxHeight(fraction = 1) { fillMaxHeight(fraction = 1) {
return super.fillMaxHeight(fraction = 1); return super.fillMaxHeight(fraction);
} }
/** /**
* @inheritdoc * @inheritdoc

Loading…
Cancel
Save