-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Enable scrolling on FEEL popup editor #319
Conversation
src/assets/properties-panel.css
Outdated
@@ -1097,10 +1097,6 @@ textarea.bio-properties-panel-input { | |||
padding: 2px 6px; | |||
} | |||
|
|||
.bio-properties-panel-feel-editor-container .cm-scroller { | |||
overflow: hidden !important; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@marstamm I drilled as far as I could in the history and from what I've seen you added these styles. I couldn't notice anything this was fixing, but maybe I missed something and you remember why this was necessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vsgoulart as @marstamm is out at the moment I suggest to dig for the commit that he introduced this and see if it exposes further context.
Also, please verify this works for the proprties panel core, with long text, too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikku is this style affecting the native property panel fields? Then we should probably find a dedicated fix in the popup editor. The native panel editors should not have a scroll bar and autofit as you said
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nikku is this style affecting the native property panel fields?
I don't know, but I gave this pointer to @vsgoulart to be able to assess the end-to-end impact of removing a prior fix (again).
Analysis of the cm-scroller stuff, it's kind of a fascinating evolution that started multiple years ago.
Example of what it looks like on windows with the scrollbars on:
TakeawaysSo, two ways we can fix this:
My opinion:
Other observations:
|
7b39cd4
to
e7bc358
Compare
I've sent through my own suggested fix. |
e7bc358
to
e36ed36
Compare
Regarding your other observations, did you check whether there are existing issues for them? |
@philippfromme They don't, at least not directly though some issues are already raised that are similar. For those I just wanted to see what people's thought were but I plan to raise follow-ups |
Let's clearly separate styles for popup editor and properties panel (cf. https://github.com/bpmn-io/internal-docs/issues/825). Let's then ship an isolated fix for the popup editor to make scrolling possible there. The properties panel is meant to be resized to "fit contents". |
What we could consider is to add automatic line breaks (always fit content). This is exactly how text area elements work, too. |
I think this makes sense - we evolved from single-line to multi-line editor and did not change the line-break behavior along with it. As we always have a "Text Area style" editor, we should not use the line-break behavior of normal input fields |
@Skaiir when testing on properties panel, the scroll-bars are interfering with the Close button. This looks broken and not intended: Are there upstream changes that I am missing which change these styles? |
Cf. #319 (comment) I tried it out and it is possible with minimum effort. As it is a one-line fix, I added this directly to this branch (506fba7) With this, we only need Vertical scrolling in both the Views. @Skaiir can you take a look at #319 (comment) ? Seems like this can be fixed by just moving the scroll bar all the way to the right if we don't need horizontal scrolling |
Looks great to me (including text area style line-breaks) :). |
@marstamm The scroll padding should be fixed now |
feat: allow tooltip re-usability (bpmn-io/properties-panel#321) feat: word wrap FEEL expressions, textarea style (bpmn-io/properties-panel#319) fix: show scrollbars in popup editor (bpmn-io/properties-panel#319) Full changelog: https://github.com/bpmn-io/properties-panel/blob/main/CHANGELOG.md#3160
feat: allow tooltip re-usability (bpmn-io/properties-panel#321) feat: word wrap FEEL expressions, textarea style (bpmn-io/properties-panel#319) fix: show scrollbars in popup editor (bpmn-io/properties-panel#319) Full changelog: https://github.com/bpmn-io/properties-panel/blob/main/CHANGELOG.md#3160
The scrollbar in the FEEL popup editor was hidden when the text was too long.
2023-12-15.15-27-38.mp4
Closes #316