Skip to content

Editor widget with text wrapping? #505

Closed Answered by jtdaugherty
franklindyer asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @franklindyer,

The reason for the error is that viewports require their contents to have contents of a fixed size in the direction of scrolling, so in the case of a Both viewport, the contents must have a fixed size in both dimensions. This is because the viewport renders the whole of its contents before deciding how to manage its scroll state and translate the contents into view, and if the contents are allowed to be infinitely large in the scrolling direction, the viewport won't be able to finish rendering. So that isn't allowed. (A simple case is that of, say, hBorder, which expands infinitely wide as it is given more room. A viewport cannot scroll that horizontally if it doesn't kn…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@franklindyer
Comment options

Answer selected by franklindyer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants