Our organization requires a bit of a responsiveness to our layouts. The Grid provides a vertical or horizontal layout. If you combine browser size checks and apply the layout accordingly, we get something that resembles a responsive layout. In other words, as the browser size is scaled down, we dynamically set the layout (vertical/horizontal). For simplicity, in this case once the screen size drops below 780px, we change to vertical. If it changes to above 780px, it goes back to a horizontal layout.
This works very well, except for the toolbar. The toolbar seems to get "stuck" in a vertical layout.
See the following example:
https://angular-bdtjxp.stackblitz.io
Editor: https://stackblitz.com/edit/angular-bdtjxp?file=src/app/app.component.ts
- Once the app loads, resize the screen's width until it is below 780px. The grid changes to vertical layout.
- Now resize back to greater than 780px. The grid changes back to horizontal layout.
NOTICE: The search box in the toolbar never changes back from the vertical layout regardless of the layout applied.