Need help with layout construction.

14 views
Skip to first unread message

Misha Kartmazov

unread,
Mar 29, 2018, 5:37:03 AM3/29/18
to Kivy users support
Hello, i have trouble with building layout. 
I trying create panel which can expand. Something like on picture above

So. We have Panel which have 2 states. Closed And Opened (fig.1 - closed and fig.2 - opened). 
Panel(fig.1) can contain diff. elements, widgets such as Button, Label, other panel, etc.
Panel(fig. 2) contains Screen or Tab manager.

Im try different combinations with RelativeLayout,BoxLayout and AnchorLayout but no success yet. 
When I change height  of root panel (panel which contain panels fig.1 and fig.2) my panel(fig.1) simply inherit root panel height :/ 

Both panels static - they have fixed weight and height.
Thanks!

Misha Kartmazov

unread,
Mar 29, 2018, 5:15:59 PM3/29/18
to Kivy users support
Ok. Problem solved. Just add "size_hint_y=None" to fig.1 panel :)

четверг, 29 марта 2018 г., 12:37:03 UTC+3 пользователь Misha Kartmazov написал:
Reply all
Reply to author
Forward
0 new messages