Skip to content

Position of Component #625

Answered by gyscos
llambdaa asked this question in Q&A
Jan 4, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, and thanks for the question!

"Current position" can be a bit ambiguous:

  • The position is often treated as relative to the parent view, but in some cases the "absolute" position (relative to the terminal's origin) can be desired, for example when adding a new layer that should be aligned with the layer underneath (this is what happens when opening popup menus).
  • A view can have some negative "virtual offset", when it is wrapped in a ScrollView for example. In such a situation, the wrapped view origin could be above and to the left of the terminal, but only a subset of the view would actually be visible.
  • Some views can be part of the view tree but not actually printed anywhere. For examp…

Replies: 1 comment 1 reply

Comment options

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

Answer selected by llambdaa
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