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 a448c3b
Browse filesBrowse the repository at this point in the historyBrowse files
feat(TreeList): page content below the tree moves with an expansion
The expansion moved the rows below the group inside the tree, but page
content below the tree still moved by layout: it jumped down at an expand
and up at the end of a collapse. It now moves on the same spring as the rows
(utils/rowMotion.ts contentBelow: in-flow content after the tree, up to its
scroll container, that sits below it; positioned and sticky elements and
anything another owner already translates or animates are left to layout).
A transient individual translate, cleared at rest. followingContent="stays"
keeps it still for apps that manage that area. Row motions now go through
one shared animator per element (utils/rowMotion.ts, a shim with the
signature of the motion foundation's coming animatorFor).
[feat] On a touch screen, page content below a `TreeList` moves with a row's expand and collapse, on the same spring as the rows, instead of jumping. `followingContent="stays"` keeps it still for apps that manage that area themselves.
Copy file name to clipboardExpand all lines: packages/core/src/TreeList/TreeList.doc.mjs
+14Lines changed: 14 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -118,6 +118,13 @@ export const docs = {
118
118
'Visual treatment of the hierarchy guide lines. lineGuides shows connector lines; noGuides hides them, keeping indentation. Orthogonal to density.',
119
119
default: "'lineGuides'",
120
120
},
121
+
{
122
+
name: 'followingContent',
123
+
type: "'moves' | 'stays'",
124
+
description:
125
+
"On a touch screen, expanding or collapsing a row slides the rows below it, and page content below the tree moves with them (a transient translate, cleared at rest). Use 'stays' to keep the content below the tree still when the app manages that area itself.",
126
+
default: "'moves'",
127
+
},
121
128
{
122
129
name: 'header',
123
130
type: 'ReactNode',
@@ -199,6 +206,13 @@ export const docsZh = {
199
206
'层级引导线的视觉呈现。lineGuides 显示连接线;noGuides 隐藏连接线并保留缩进。与 density 正交。',
0 commit comments