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
When a FieldMultilineInput has too many paragraphs of text, the block grows very large, and when editing it's value the input box may overflow the page.
Hmmm normal text fields can also cause overflows (and I assume they can break the page layout). What's your expected behavior in a situation like below?
The two ideas I can come up with (adding a horizontal scroll bar, or forcing the block within the view bounds) both seem inelegant :/
Normal fields can indeed also overflow, but at least they are bounded to a max width as you can see. This makes it less likely that a user makes the text overflow outside of the workspace.
Actually very weird that they can extend beyond the wraping div my page uses, as that has overflow: hidden so should not be able to overflow
To me the best solution would be taking the folowing steps:
Limit the height of the block to ~8 lines
Make sure that the input box also shows multiple lines if a single line wraps (currently the line wraps but input box doesn't get larger, making it kinda hard to see all your text
If possible add a scrollbar, and scrolling behavior to the input box (scrollwheel does nothing right now)
Maybe add an elipsis ( ⋮ <or a vertical one) on the last line if more then 8 lines are present in the block
So it would look like this when inactive
And like this when active
It would not 'fix' the overflow issue but it would make users a lot less likely to run into it. As they will naturally try to fit the block they are working on within the view
Another inelegant solution would be reusing the popup that appears for dropdowns, as that one already positions itself within the view. but it don't think that would be intuitive
Hmmm normal text fields can also cause overflows (and I assume they can break the page layout). What's your expected behavior in a situation like below?
The two ideas I can come up with (adding a horizontal scroll bar, or forcing the block within the view bounds) both seem inelegant :/
In this case, I think the canvas (view area) should move with the cursor.
I want to implement such a feature in my fork. How can I detect overflow in FieldTextInput?
Activity
BeksOmega commentedon Mar 11, 2021
Hmmm normal text fields can also cause overflows (and I assume they can break the page layout). What's your expected behavior in a situation like below?

The two ideas I can come up with (adding a horizontal scroll bar, or forcing the block within the view bounds) both seem inelegant :/
dionytadema commentedon Mar 12, 2021
Normal fields can indeed also overflow, but at least they are bounded to a max width as you can see. This makes it less likely that a user makes the text overflow outside of the workspace.
Actually very weird that they can extend beyond the wraping div my page uses, as that has
overflow: hiddenso should not be able to overflowTo me the best solution would be taking the folowing steps:
So it would look like this when inactive


And like this when active
It would not 'fix' the overflow issue but it would make users a lot less likely to run into it. As they will naturally try to fit the block they are working on within the view
Another inelegant solution would be reusing the popup that appears for dropdowns, as that one already positions itself within the view. but it don't think that would be intuitive
gonfunko commentedon Oct 18, 2021
This issue was also reported on the forum: https://groups.google.com/g/blockly/c/g2xM0gnAbiE
MrAndrewMal commentedon Sep 1, 2022
In this case, I think the canvas (view area) should move with the cursor.
I want to implement such a feature in my fork. How can I detect overflow in FieldTextInput?