mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Revealing hidden pages with visible children.
Summary: When a page is hidden, all its nested pages are shown as children of a different page that happens to be before (as in pagePos) that page. This diff shows those pages as CENSORED. Test Plan: Updated Reviewers: alexmojaki Reviewed By: alexmojaki Subscribers: alexmojaki Differential Revision: https://phab.getgrist.com/D3670
This commit is contained in:
@@ -298,7 +298,7 @@ export class TreeViewComponent extends Disposable {
|
||||
|
||||
let headerElement: HTMLElement;
|
||||
let labelElement: HTMLElement;
|
||||
let handleElement: HTMLElement;
|
||||
let handleElement: HTMLElement|null = null;
|
||||
let offsetElement: HTMLElement;
|
||||
let arrowElement: HTMLElement;
|
||||
|
||||
@@ -329,13 +329,14 @@ export class TreeViewComponent extends Disposable {
|
||||
),
|
||||
delayedMouseDrag(this._startDrag.bind(this), this._options.dragStartDelay),
|
||||
),
|
||||
css.itemLabelRight(
|
||||
treeItem.hidden ? null : css.itemLabelRight(
|
||||
handleElement = css.centeredIcon('DragDrop',
|
||||
dom.style('top', (use) => use(deltaY) + 'px'),
|
||||
testId('handle'),
|
||||
dom.hide(this._options.isReadonly),
|
||||
),
|
||||
mouseDrag((startEvent, elem) => this._startDrag(startEvent))),
|
||||
mouseDrag((startEvent, elem) => this._startDrag(startEvent))
|
||||
),
|
||||
),
|
||||
...args
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user