primeng icon indicating copy to clipboard operation
primeng copied to clipboard

dataTable when scrollable and scrollheight is set - style issue

Open Floppynator opened this issue 10 years ago • 10 comments

a dataTable style is broken when scrollable and scrollHeight attribute is set.

Floppynator avatar Jun 08 '16 13:06 Floppynator

any update on this?

rahuja910 avatar Jun 17 '16 01:06 rahuja910

Same here. If I set a percentage value into the scrollHeight it sets the max-height of the body to 0px

sittingbool avatar Dec 09 '16 11:12 sittingbool

The error happens Here: https://github.com/primefaces/primeng/blob/master/components/datatable/datatable.ts#L1620.

My Setup: I have the table inside a tab-panel. The first tab has a selection which changes the list shown in the table, the second has the table. After I change tabs, select and come back to the table this line will set 0px and never be called again.

sittingbool avatar Dec 09 '16 12:12 sittingbool

Unable to replicate with newer versions, please try with 2.0.2.

cagataycivici avatar Mar 09 '17 09:03 cagataycivici

This issue still affects me - both on 2.0.2 and 2.0.3

bbonczek avatar Mar 13 '17 10:03 bbonczek

Can you provide a plunkr please?

cagataycivici avatar Mar 13 '17 10:03 cagataycivici

Yup, I'm working on it right now.

bbonczek avatar Mar 13 '17 10:03 bbonczek

Thanks, we'll do 4.0.RC1 on wednesday, I can ask my colleague to check this until then.

cagataycivici avatar Mar 13 '17 10:03 cagataycivici

There is everything fine with with scrollWidth. The scrollHeight is the one, that seems to have problems:

http://plnkr.co/edit/lwsjtNJCWW5qEBtOOXiY?p=preview

bbonczek avatar Mar 13 '17 10:03 bbonczek

Was there ever a fix for this? I'm still finding the issue in the latest npm package.

ericrovtar avatar Jun 27 '17 13:06 ericrovtar