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

Option to inherit dimensions when using *cdkDragPreview #18177

Closed
JohnKis opened this issue Jan 15, 2020 · 1 comment · Fixed by #18362, lingounet/testage#9, hrueger/AGLight#112 or hrueger/AGLight#114
Assignees
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Comments

@JohnKis
Copy link

JohnKis commented Jan 15, 2020

Feature Description

Add an option to inherit the dimensions (width, height) of the draggable element when using a custom preview template.

Use Case

It would be really useful in cases where the custom preview element is similar to the source element.

@JohnKis JohnKis added the feature This issue represents a new feature or feature request rather than a bug or bug fix label Jan 15, 2020
@crisbeto crisbeto self-assigned this Feb 1, 2020
@crisbeto crisbeto added has pr P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent labels Feb 1, 2020
crisbeto added a commit to crisbeto/material2 that referenced this issue Feb 1, 2020
…m preview

By default we don't resize custom previews, because we'd have to make assumptions about what the consumer wants to show. These changes add the `matchSize` input which allows the consumer to opt into matching the custom preview size to the dragged element size.

Fixes angular#18177.
crisbeto added a commit to crisbeto/material2 that referenced this issue Feb 9, 2020
…m preview

By default we don't resize custom previews, because we'd have to make assumptions about what the consumer wants to show. These changes add the `matchSize` input which allows the consumer to opt into matching the custom preview size to the dragged element size.

Fixes angular#18177.
andrewseguin pushed a commit that referenced this issue Feb 20, 2020
…m preview (#18362)

By default we don't resize custom previews, because we'd have to make assumptions about what the consumer wants to show. These changes add the `matchSize` input which allows the consumer to opt into matching the custom preview size to the dragged element size.

Fixes #18177.
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Mar 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature This issue represents a new feature or feature request rather than a bug or bug fix P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent
Projects
None yet
2 participants