Skip to content

What would be the best way to implement it. #51

Answered by a-n-t-h-o-n-y
cloud11665 asked this question in Q&A
Discussion options

You must be logged in to vote

Hey,
We don't currently have a way to anchor from the bottom instead of the top, this is implemented pretty deeply into the layout structure. I do see the use case though and it will be something I think of for a future update.

You could try to implement it over a layout by overriding the resize event handler to change the child widget offset appropriately (the offset is the index of the widget displayed first in the layout). I'm not entirely sure if this is the right way to do this, and I don't have the time right now to implement it myself.

template <typename Child_t>
class Bottom_anchor_layout : public ox::layout::Vertical<Child_t> {
   protected:
    auto resize_event(ox::Area new_siz…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

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

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