Open iyouth23 opened 11 hours ago
@iyouth23 the panel is designed to scroll content. Can you set the height on the panel instead of a div inside of it?
@iyouth23 in your example, if you just add position:relative;
to your div it seems to fix it. Can you verify?
Check existing issues
Actual Behavior
calcite-panel
will add extra vertical space if its content doesn't take up the entire height of the screen. This is especially visible when I want to set content to have a fixed height while still allowing for scrolling of internal content that exceeds this height.For example, I want an action-bar inside a calcite-panel, but I want its max-height to be 500px and have overflow-y: scroll.
This is occurring due to a change to
calcite-panel
in 2.12, where<div class="content-wrapper">
now hasposition: relative
: https://github.com/Esri/calcite-design-system/blob/dev/packages/calcite-components/src/components/panel/panel.scss#L168Expected Behavior
Extra vertical space should not appear below the content's max-height, and neither should the scrollbar. The panel should snap to the height of the content inside.
Reproduction Sample
https://codepen.io/iyouth66/pen/BaXKYxz
Reproduction Steps
Reproduction Version
2.12.0
Relevant Info
cc @driskull @zaramatheson
Regression?
2.11.0
Priority impact
impact - p1 - need for current milestone
Impact
Map Viewer has many places where we have unnecessary extra vertical space/scrollbars now. See the examples below. We're seeking a fix for this or a workaround in the meantime.
Calcite package
Esri team
ArcGIS Online