Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gutter does not show up inside mat-card using Angular Material UI #329

Open
PeterSR opened this issue Nov 18, 2022 · 1 comment
Open

Gutter does not show up inside mat-card using Angular Material UI #329

PeterSR opened this issue Nov 18, 2022 · 1 comment
Labels

Comments

@PeterSR
Copy link

PeterSR commented Nov 18, 2022

There seems to be a weird interaction between Angular Material and angular-split.
When I try to put a split1 inside a mat-card, the gutter does not render and is not draggable.

Even outside the the card, there seems to be some weird behavior, requiring a height on the container. See the stackblitz below.
Perhaps I have missed something in the documentation?

To Reproduce

https://stackblitz.com/edit/angular-material-components-demo-bxezvy?file=src/app/app.component.html

The stackblitz uses Angular Material 7, but that's just because it is based on a fork. I am using Angular 14.2.0 with Material 14.2.2 in my own project and it has the same problem.

I have also tried to add a split outside all of the Material elements. Even there the gutter still does not render unless I have the following styling on the container around the split:

<div style="width: 500px; height: 500px">

Can someone explain what might be the cause of this? It is perhaps something simply I have missed.

Edit:

It turns out that it is actually the height requirement that makes a difference. Why I try to set a fixed height on the container around the split, even inside a mat-card, the gutter shows up.
Where is this height requirement documented?

Footnotes

  1. Based on https://github.com/angular-split/angular-split/blob/main/src/app/examples/custom-gutter-style/custom-gutter-style.component.ts#L17

@PeterSR PeterSR added the bug label Nov 18, 2022
@Harpush
Copy link
Collaborator

Harpush commented Aug 27, 2023

Seems related to #268

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants