Text-overflow broken in datatable on latest ultima/primeng

Forum rules
Please note that response time for technical support is within 3-5 business days.
Post Reply
mbrancaleoni
Posts: 20
Joined: 10 Jun 2016, 11:48

10 Aug 2017, 11:37

Hi,

I've updated from ultima 2.1 to latest and from primeng 4.0.3 to 4.1.3 and datatable where columns have long text does not get clipped anymore.

before: text was clipped to column size, which was ok.
now: text overflow over the adiacent cell

this can be easily reproduced within the theme demo itself: just edit cars-medium.json and change some "vins" field to a long value and see the result.

same happens if using a ng-template with a ptooltip inside the cell: the tooltip background is not aligned to the tooltip len.

reverting makes everything ok again.

example:
Image

Note: for tooltip, just add inside datademo.html this snippet:

Code: Select all

<ng-template pTemplate="body" let-col let-row="rowData">
  <span [pTooltip]="row[col.field]">{{row[col.field]}}</span>
 </ng-template>
 
inside the first column on the first datatable demo and make the vin field long by modifying the cars-medium.json

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

15 Aug 2017, 17:29

Try;

{code}
<p:column [style]="{overflow: 'hidden'}"
{code}

mbrancaleoni
Posts: 20
Joined: 10 Jun 2016, 11:48

26 Aug 2017, 16:33

yup,

that does the trick.

mbrancaleoni
Posts: 20
Joined: 10 Jun 2016, 11:48

26 Aug 2017, 16:38

mmh, but that does not fix the tooltip, that still has a fixed width resulting into overflowing content. before the width adapted to content size.

Post Reply

Return to “Ultima - PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests