-
-
Notifications
You must be signed in to change notification settings - Fork 204
feat(template): make virtual views not set a height by default #1849
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
base: main
Are you sure you want to change the base?
Conversation
View your CI Pipeline Execution ↗ for commit a356749.
☁️ Nx Cloud last updated this comment at |
You can use the `--rx-vw-h` and `--rx-vw-w` CSS variables in order to define the placeholder dimensions after the virtual view is rendered at least once. | ||
|
||
```html | ||
<div style="min-height: var(--rx-vw-h, 100px); min-width: var(--rx-vw-w, 50px);"></div> | ||
``` | ||
|
||
If the virtual view is not rendered at least once, the 100px and 50px values will be used as fallback the first time, and after that, the values will be updated to the actual dimensions of the virtual view. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this deserves its own headline
RxVirtualViewObserver, | ||
RxVirtualViewPlaceholder, | ||
} from '@rx-angular/template/virtual-view'; | ||
import { RxVirtualView, RxVirtualViewContent, RxVirtualViewObserver, RxVirtualViewPlaceholder } from '@rx-angular/template/virtual-view'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
meh formatting?
@eneajaho can we finalize this? |
No description provided.