We designed a header that goes on the top of all the views.
The person that did it like 2 years ago didn't center the text and I'm trying to fix it.
It's a Flex View that contains the following:
| Icon | Logo | Flex Container 1 | User Icon | Conf Icon | Flex Container 2 |
All of those have a fix width except the Flex Container 1 that has the view tittle and has grow:1.
This means that the tittle is centered to that Flex Container and not the view. Any idea on how to fix it? If I could get the total view widht I could do a % on that with a binding.
If you must, you can wrap the components on each side in another container, and set those to a a fixed width. You risk squashing the title when there is still available space, though.
This is just some good ol' CSS flex box tinkering. You can use empty containers to fill gaps on either side of the title component to make sure each side has the same basis %. In your case, if the logo is taking up only 20% of the view, maybe you need to add an empty 20% container to balance it with all of the components on the right side.
I believe if you look at the template Perspective project that IA provides, they do this method in their header if you would like a more concrete example.