A very tall block inside a scroll has its computed height overflow to negative
Categories
(Core :: Layout, defect, P3)
Tracking
()
People
(Reporter: remy.oukaour, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(1 file)
1021 bytes,
text/html
|
Details |
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Steps to reproduce:
User Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:68.0) Gecko/20100101 Firefox/68.0
Build ID: 20190813150448
Steps to reproduce: Open the attached testcase.
This was originally discovered in a production website (not publically accessible) using a PrimeNG Table with close to a million (lazy-loaded, virtual-scroll) rows. The bug prevents us from accessing data beyond the top N immediately-loaded rows.
Actual results:
The 20,000,000px-tall rainbow-gradient div inside the 600px-tall overflow:auto div is only tall enough to contain its "lorem ipsum" text. The position:absolute green "(end)" div is not visible.
The scrollbar is still tall enough to cover 20 million px, but in the original PrimeNG Table the scrollbar itself is only tall enough for the text content.
Expected results:
The rainbow-gradient should be the full 20,000,000px tall. The "(end)" div should be at the bottom of the scroll when you scroll all the way down.
Reporter | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
Hi Remy,
I don't see the attached test case. Could you check it, please?
Thanks, Flor.
Comment 3•5 years ago
|
||
Hi Remy,
Thanks for the test case. I was able to reproduce the bug on the following versions:
release 68.0.2 (64-bit), nightly 70.0a1 (2019-08-30) (64-bit) and Beta 69.0b16 (64-bit).
I've chosen a component. If you consider that there's another component that's more proper for this case you may change it.
Best regards, Flor.
Comment 4•5 years ago
|
||
This is the case where a large height overflows the internal integer max, and produce a wrong layout result.
Updated•2 years ago
|
Description
•