primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Dropdown text overflow, 9.0.6 & 9.1.0

Open dmytro-gokun opened this issue 6 years ago • 11 comments

I'm submitting a ...

[X] bug report => Search github for a similar issue or PR before submitting

Plunkr Case (Bug Reports) https://stackblitz.com/edit/primeng-dropdown-label-overflows-clear-button

Current behavior

  1. Select first item from the drop down
  2. Label text flows outside of the dropdown, all over the clear button, down button and further.

Expected behavior Text should be truncated (perhaps using ellipsis).

Angular version: 9.1.3

PrimeNG version: 9.0.6

dmytro-gokun avatar Apr 24 '20 15:04 dmytro-gokun

I have the same problem

PrimeNG version: 9.0.1

irakligogiashvili avatar May 20 '20 14:05 irakligogiashvili

I have the same problem

PrimeNG version: 9.1.0 Angular version: 9.1.4

gabrielrevilla avatar Jun 01 '20 12:06 gabrielrevilla

The problem still exists in 9.1.0

dmytro-gokun avatar Jun 05 '20 07:06 dmytro-gokun

I have the same issue using PrimeNG version 9.1.0.

Were you guys able to find a work around. Adding text-overflow:ellipsis did not solve the issue.

sohaib-khan avatar Jun 05 '20 15:06 sohaib-khan

I changed the following class and it gave me a desired effect for now.

.ui-dropdown-label-container { width: 100%; } .ui-dropdown.ui-dropdown-clearable .ui-dropdown-label { text-overflow: ellipsis; padding-right: 2em !important; } .ui-dropdown .ui-dropdown-label { text-overflow: ellipsis; padding-right: 1em !important; } Screen Shot 2020-06-06 at 10 33 49

sohaib-khan avatar Jun 06 '20 07:06 sohaib-khan

@sohaib-khan Thanks for sharing a workaround. Hopefully, primeng folks will find some time and fix the bug permanantly though :).

dmytro-gokun avatar Jun 06 '20 08:06 dmytro-gokun

I'm also facing this issue... thans @sohaib-khan for the workaround!

franciscoghansen avatar Jun 23 '20 20:06 franciscoghansen

Can we know when there is a solution regarding this bug?

beinto avatar Aug 12 '20 17:08 beinto

@beinto No. That's against Primefaces's policy :). I have reported like a dozen of bugs, they have fixed a couple of them. But they have never promised any dates. I guess, i'll be transitioning away from this library. It's a pity, coz overall it's quite good. But they have too few resources to fix all the numerous bug + they do not seem to have any regerssion testing set up. Sometimes, a minor update, like 9.0.5 => 9.0.6 ruins have of your app and re-introduces bugs that were already fixed ages ago. Very sad.

dmytro-gokun avatar Aug 12 '20 17:08 dmytro-gokun

Unable to replicate with PrimeNG 11.0.0-rc.1, if the issue persists please create a new ticket with a test case reproducing the issue e.g. stackblitz or a github repo and it will be reviewed by our team once again.

yigitfindikli avatar Nov 23 '20 11:11 yigitfindikli

I changed the following class and it gave me a desired effect for now.

.ui-dropdown-label-container { width: 100%; } .ui-dropdown.ui-dropdown-clearable .ui-dropdown-label { text-overflow: ellipsis; padding-right: 2em !important; } .ui-dropdown .ui-dropdown-label { text-overflow: ellipsis; padding-right: 1em !important; } Screen Shot 2020-06-06 at 10 33 49

You are the real MVP.

One minor change I made.

.page-filter-bar ::ng-deep .ui-dropdown .ui-dropdown-label {
    text-overflow: ellipsis;
    padding-right: 2em !important;
}

We cannot at this time jump to version 11 or whatever, do to all the changes that were made in 10.

pragmat1c avatar May 10 '21 19:05 pragmat1c