grafana / scenes

Build Grafana dashboards directly in your Grafana app plugins.
https://grafana.com/developers/scenes
Apache License 2.0
141 stars 21 forks source link

SceneFlexLayout: Min width/height option was ignored #749

Closed edvard-falkskar closed 5 months ago

edvard-falkskar commented 5 months ago

Discovered that the SceneFlexLayout component was not respecting the minWidth and minHeight options if it doesn't have a parent, this pr fixes so that they are applied without having to have a parent.

The reason why it works when there is a parent is that applyItemStyles function is called with both the own state and parentState and there the minWidth and minHeight options are applied.

CLAassistant commented 5 months ago

CLA assistant check
All committers have signed the CLA.

grafanabot commented 5 months ago

:rocket: PR was released in v4.24.0 :rocket: