Common
class Reflow(internal val reflowUnder: PaneScaffoldRole) : AdaptStrategy
Indicate the associated pane should be reflowed when certain conditions are met. With the default calculation functions calculateThreePaneScaffoldValue we provide, when it's a single pane layout, a pane with a reflow strategy will be adapted to either:
- PaneAdaptedValue.Reflowed, when either the reflowed pane or the target pane it's supposed to be reflowed to is the current destination; or
PaneAdaptedValue.Hiddenotherwise.
Note that if the current layout can have more than one horizontal partition, the pane will never be reflowed.
To provide custom adapt strategies, see the following sample:
Parameters
| reflowUnder | the pane that the reflowed pane will be put under; within the context of three pane scaffolds, the type of this parameter is supposed to be ThreePaneScaffoldRole. |