yangzhang75 commented on code in PR #9407:
URL: https://github.com/apache/texera/pull/9407#discussion_r4544209400
##########
frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss:
##########
@@ -689,6 +689,18 @@ $shell: #fafafa;
cursor: default !important;
}
+ /* Read-only, the editor is inert, and an inert subtree is left out of
hit-testing: a wheel over
+ it reaches this panel, never the editor's own scroller (#content), which
could then not be
+ scrolled at all -- a long step was cut off at the panel's bottom. Keyed
on the attribute that
+ is the cause: while the editor is inert it grows to its content and this
panel, which the
+ wheel does reach (and the keyboard, through the tab stop the panel
carries for exactly this),
+ is the scroller. Live, the editor keeps its own scroller, as on the
operator canvas. The
+ !important has to beat the base rule's own !important above; #content
needs nothing, its
+ height: 100% follows an auto-height parent. */
+ ::ng-deep texera-property-editor[inert] #right-container {
Review Comment:
The rule is nested under `.panel` in the stylesheet, so the compiled
selector is `.panel … texera-property-editor[inert] #right-container`, and the
Form View renders exactly one property editor, inside that panel. `[inert]` is
the condition itself rather than a proxy for it: an inert subtree is what takes
the wheel away from the editor's own scroller, and `inert` is bound from the
same `panelLive` a `read-only` class would have been. Settled on the attribute
over a parallel class in review; the description now says so.
##########
frontend/src/app/workspace/component/workflow-form/workflow-form.component.scss:
##########
@@ -689,6 +689,18 @@ $shell: #fafafa;
cursor: default !important;
}
+ /* Read-only, the editor is inert, and an inert subtree is left out of
hit-testing: a wheel over
+ it reaches this panel, never the editor's own scroller (#content), which
could then not be
+ scrolled at all -- a long step was cut off at the panel's bottom. Keyed
on the attribute that
+ is the cause: while the editor is inert it grows to its content and this
panel, which the
+ wheel does reach (and the keyboard, through the tab stop the panel
carries for exactly this),
+ is the scroller. Live, the editor keeps its own scroller, as on the
operator canvas. The
+ !important has to beat the base rule's own !important above; #content
needs nothing, its
+ height: 100% follows an auto-height parent. */
+ ::ng-deep texera-property-editor[inert] #right-container {
+ height: auto !important;
+ }
Review Comment:
Right, the description described an earlier revision. Updated it to the rule
as committed (`::ng-deep texera-property-editor[inert] #right-container` under
`.panel`, no template or spec change) and the testing notes to match.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]