You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to change positionPercentage of just created SplitPaneState.
Long story short, recreating SplitPaneState is not an option in my architecture. Use it in SplitPane just to calculate internal minPosition and maxPosition is a poor option as well.
Affected platforms
Desktop
Reproducer
importorg.jetbrains.compose.splitpane.SplitPaneStatefunmain() {
val splitPaneState =SplitPaneState(0.6f, true)
splitPaneState.dispatchRawMovement(0.2f)
println(splitPaneState.positionPercentage) // prints "NaN"
}
Expected behavior
Some API supposed to be available to change/reset positionPercentage of already created but not yet used SplitPaneState.
Expected behavior
API are internal or buggy until put SplitPaneState into SplitPane.
The text was updated successfully, but these errors were encountered:
Describe the bug
I need to change
positionPercentage
of just createdSplitPaneState
.Long story short, recreating
SplitPaneState
is not an option in my architecture. Use it inSplitPane
just to calculate internalminPosition
andmaxPosition
is a poor option as well.Affected platforms
Reproducer
Expected behavior
Some API supposed to be available to change/reset
positionPercentage
of already created but not yet usedSplitPaneState
.Expected behavior
API are internal or buggy until put
SplitPaneState
intoSplitPane
.The text was updated successfully, but these errors were encountered: