equinor / webviz-subsurface-components

Custom subsurface visualizations for use in Webviz and/or Dash.
https://github.com/orgs/equinor/projects/24
Mozilla Public License 2.0
39 stars 40 forks source link

fix: pass width prop to spacer component to be used for initial layout calculation #2245

Closed mirisb closed 2 months ago

mirisb commented 2 months ago

A fix for #2241

Spacer width was not passed down to spacer component thus its width was originally 1 upon initial mounting and then it was calculated from the combination of width of the internal elements. After the fix, the width is passed down as initial width which (if large enough)has the potential not to be recalculated.

Story with spacers as well as default spacer size was adjusted to provide a more logical spacer size upon rendering (determined from a Full HD 1080p resolution)

hkfb commented 2 months ago

:tada: This issue has been resolved in version well-log-viewer@1.13.3 :tada:

The release is available on GitHub release