diff options
author | Yuri Kobets <yuri.kobets@gmail.com> | 2023-12-28 02:54:09 +0300 |
---|---|---|
committer | Yuri Kobets <yuri.kobets@gmail.com> | 2023-12-28 02:54:09 +0300 |
commit | 76ffcfa84110bc787da6d2ea6b8cb7e9bbd5ddc1 (patch) | |
tree | f63f73384b2512d83ec353236a37a4415ea6292d /src/render_block_context.cpp | |
parent | 33407c6cc9f0023559eaf728c1b219eda73da78e (diff) |
flex: more flex tests passed
Diffstat (limited to 'src/render_block_context.cpp')
-rw-r--r-- | src/render_block_context.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/render_block_context.cpp b/src/render_block_context.cpp index df2f5057..c94bc566 100644 --- a/src/render_block_context.cpp +++ b/src/render_block_context.cpp @@ -110,10 +110,9 @@ int litehtml::render_item_block_context::_render_content(int x, int y, bool seco } } - int block_height = 0; - if (get_predefined_height(block_height, self_size.height)) + if (self_size.height.type != containing_block_context::cbc_value_type_auto && self_size.height > 0) { - m_pos.height = block_height; + m_pos.height = self_size.height; } else { m_pos.height = child_top; |