Skip to content

Commit

Permalink
Ensure Feed and scrollable layout children heights are not fixed (#7747)
Browse files Browse the repository at this point in the history
  • Loading branch information
philippjfr authored Mar 2, 2025
1 parent d8df149 commit 46f9fe1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
9 changes: 6 additions & 3 deletions panel/dist/css/listpanel.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
:host(.scrollable) {
:host(.scrollable),
:host(.scrollable-vertical) {
overflow: auto;
}

:host(.scrollable-vertical) {
overflow-y: auto;
:host(.scrollable) > div,
:host(.scroll) > div,
:host(.scroll-vertical) > div {
max-height: unset;
}

:host(.scrollable-horizontal) {
Expand Down
5 changes: 5 additions & 0 deletions panel/models/feed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,11 @@ export class FeedView extends ColumnView {
return created
}

override _update_layout(): void {
super._update_layout()
this.style.append(":host > div", {max_height: "unset"})
}

override render(): void {
this._rendered = false
super.render()
Expand Down

0 comments on commit 46f9fe1

Please sign in to comment.