1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:47:45 +00:00

LibWeb: Use inner available space to calculate auto height of abspos

By using available_inner_space_or_constraints_from(available_space), we
ensure that the available space used to calculate the min/max content
height is constrained by the width specified for the box itself
(I know that at least GFC always expects available width to be
constrained by specified width if there is any).

This change improves layout in "Recent news" block on
https://telegram.org/
This commit is contained in:
Aliaksandr Kalenik 2023-11-14 17:33:45 +01:00 committed by Andreas Kling
parent 6b5a0100d9
commit eac7916d2c
3 changed files with 38 additions and 1 deletions

View file

@ -0,0 +1,12 @@
<!DOCTYPE html><style>
* {
border: 1px solid black;
}
.box {
width: 200px;
position: absolute;
left: 0;
display: grid;
background-color: magenta;
}
</style><div class="box">Giveaways in Channels and Free Premium Giveaways in Channels and Free Premium</div>