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
{{ message }}
Repository navigation
Commit b0d328d
Browse filesBrowse the repository at this point in the historyBrowse files
- Heights set from code are used as given, not held to `minPaneHeight` and
79
+
`maxPaneHeight`, so a pane can be taller than a user could drag it. A height
80
+
too big for the box is cut back so the candles keep a strip above it.
81
+
- A pane missing from a shorter list, or given a height that is not a positive
82
+
number, gets the standard height.
83
+
- While a list is given you own the heights, like a controlled text field. A
84
+
drag (with `resizablePanes` on) or `setPaneHeight` does not move a pane by
85
+
itself: it is reported through `onPaneHeightsChanged`, and the pane moves when
86
+
you pass the new list back. Pass `null` to give the heights back to the chart.
87
+
Maximizing through the controller still works over a list, and lets go of
88
+
whenever a height changes.
89
+
- Panes in `paneHeights` are matched by position. When `onReorderPane` moves
90
+
one, move its height with it.
91
+
39
92
`ChartStyle.paneResizeTolerance` and `paneGrabHeight` set the size of the
40
93
resize and reorder hit areas.
41
94
95
+
## Sizing modes
96
+
97
+
`paneSizeMode` chooses how the heights of the candles, the volume pane and the
98
+
indicator panes are worked out:
99
+
100
+
| Mode | Heights come from | Who changes them |
101
+
|---|---|---|
102
+
|`PaneSizeMode.heights` (default) | pixels: 100 per pane, 60 for volume, or `paneHeights` / `volumeHeight`| you, or the user dragging a pane's lower edge with `resizablePanes`|
103
+
|`PaneSizeMode.ratios`| proportions in `paneRatios`| you |
104
+
|`PaneSizeMode.custom`| the user's own layout | the user, dragging lines in edit mode |
105
+
106
+
`ratios` and `custom` need the box to bound the chart's height and `mBaseHeight`
107
+
to be left off; otherwise the pixel heights are used.
0 commit comments