components icon indicating copy to clipboard operation
components copied to clipboard

md-select right text overflow

Open sebghtray opened this issue 9 years ago • 1 comments

Bug, feature request, or proposal:

image

The mat-select-panel goes behind window if it is to close to the right. (the cdk-overlay has a wrong left style)

What is the expected behavior?

The mat-select-panel needs to go to the left. (If you can add something like mat-select-parent-class to the md-select, you can fix it easily using custom css)

What is the current behavior?

The mat-select-content can't have a custom class, and it will not auto position itself to the left, it will go behind the window.

What are the steps to reproduce?

Just put a select all to the right with a medium text, and click it. Or just see the Plunker: http://plnkr.co/6AKBKE6ZwhCKMFbK1PwF?p=preview

What is the use-case or motivation for changing an existing behavior?

We can't have a select all to the right because of this bug or lack of feature

Is there anything else we should know?

The problem itself is the overlay system.

If we can pass something like this: <md-select placeholder-position="right || left"> or <md-select custom-class="placeholder-right">

We can set the left of the overlay manually or add a custom class and add a margin to the placeholder (.mat-select-panel) inside the overlay

sebghtray avatar Mar 08 '17 17:03 sebghtray

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.