This is a migrated thread and some comments may be shown as answers.

Height of Toolbar as child of flex container with column flex direction

2 Answers 22 Views
Toolbar
This is a migrated thread and some comments may be shown as answers.
LQKerry
Top achievements
Rank 1
LQKerry asked on 09 Apr 2020, 04:27 PM

Please see the dojo example I have set up at: https://dojo.telerik.com/AYUrAZOJ/3

The example is working exactly how I want it to with the exception that the height of the .nav-toolbar shrinks when I make .navigation-pane a flex container. I have added another toolbar just to the right of the .nav-toolbar to show the size difference. If you were to remove the styles for .navigation-pane and .nav-content the .nav-toolbar sizes as expected.

I am hoping there is a flex css value I am missing, but after about an hour of research and trying different things I have not found anything that gets the toolbar to maintain its original height. Any help would be greatly appreciated.

Please let me know if any further clarification is needed.

Thanks

Kerry

2 Answers, 1 is accepted

Sort by
0
LQKerry
Top achievements
Rank 1
answered on 09 Apr 2020, 04:48 PM
It figures, right after posting this thread I tried a couple more things and figured it out. I just had to apply flex: 0 0 auto; to the toolbar element itself. Updated dojo at:https://dojo.telerik.com/AYUrAZOJ/4
0
Petar
Telerik team
answered on 13 Apr 2020, 10:15 AM

Hi Kerry,

Thank you for sharing the solution to the current case with the community! Let me know if you need further assistance with the implementation of the desired functionality. 

Regards,
Petar
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
Toolbar
Asked by
LQKerry
Top achievements
Rank 1
Answers by
LQKerry
Top achievements
Rank 1
Petar
Telerik team
Share this question
or