Bug 1529018 Comment 7 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

Sorry, caught up on my bugmail after our IRC discussion and just saw your question here. :)

(In reply to Alexandre Poirot [:ochameau] from comment #5)
> > If we want to keep the `position:absolute` hack for the time being,
> The usage of `position:absolute` is related to the `overflow: auto`.
> It intends to implement a scrollable table.
> 
> Using `overflow:auto` on a `<table>` doesn't work. It doesn't produce a scrollable table, instead, the table expands to the full height of all its rows.

Do you really need it to be `position:absolute`, though?  It sounds like maybe you just need `overflow:auto` which works on blocks though apparently doesn't work on tables. And `position:absolute` is a complex thing which had the **side effect** of making this element into a block and thereby making `overflow` do what you expected -- but really maybe the `display:block` is all that you need (no `absolute) for the scrollable element?

> Daniel, Do you think you could be able to know why or what causes the full table to repaint when adding a new row?

I think we sorted this out over IRC.
Sorry, caught up on my bugmail after our IRC discussion and just saw your question here. :)

(In reply to Alexandre Poirot [:ochameau] from comment #5)
> > If we want to keep the `position:absolute` hack for the time being,
> The usage of `position:absolute` is related to the `overflow: auto`.
> It intends to implement a scrollable table.
> 
> Using `overflow:auto` on a `<table>` doesn't work. It doesn't produce a scrollable table, instead, the table expands to the full height of all its rows.

Do you really need it to be `position:absolute`, though?  It sounds like maybe you just need `overflow:auto` which works on blocks though apparently doesn't work on tables. And `position:absolute` is a complex thing which had the **side effect** of making this element into a block and thereby making `overflow` do what you expected -- but really maybe the `display:block` is all that you need (with `absolute` being unnecessary) for the scrollable element?

> Daniel, Do you think you could be able to know why or what causes the full table to repaint when adding a new row?

I think we sorted this out over IRC.

Back to Bug 1529018 Comment 7