What is the difference between Auto Width and Max Width?

Hello everyone.

I’m creating some dashboards and I don’t understand the difference between using Auto Width and Max Width in a component. I see very similar behavior. Can someone explain it to me, please? Thanks.

Hi

The difference between max width and auto width in an anchored layout is as follows:

  • Max width: The widget automatically extends to fill the entire available width of the screen, starting from its anchor position. It doesn’t consider whether another widget occupies that space

  • Auto width: The widget automatically adjusts its width to fit its content to the space available

You can also find more details about the layout behavior in the Checkmk docs.

Best
Mathieu

2 Likes

Thanks Mathieu for your reply and for the link to the documentation. Very helpful, thank you.