aboutsummaryrefslogtreecommitdiffstats
path: root/src/render_block.cpp
diff options
context:
space:
mode:
authorYuri Kobets <[email protected]>2023-04-14 15:04:24 +0300
committerYuri Kobets <[email protected]>2023-04-14 15:04:24 +0300
commit180529bd5c3ff7f2687901bdc5ded53b10020b51 (patch)
treec4eefbaadecb5d1aac3c551122d0b7cc93a44e88 /src/render_block.cpp
parent109a837ef6a3dc302d3fb906a315681a8d68cce1 (diff)
fixed rendering issue with fixed block size
Diffstat (limited to 'src/render_block.cpp')
-rw-r--r--src/render_block.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/render_block.cpp b/src/render_block.cpp
index f45ba485..a3663daa 100644
--- a/src/render_block.cpp
+++ b/src/render_block.cpp
@@ -702,6 +702,10 @@ int litehtml::render_item_block::_render(int x, int y, int max_width, const cont
} else
{
m_pos.width = cb_size.width;
+ if(cb_size.width_type == containing_block_context::cbc_value_type_absolute)
+ {
+ ret_width = cb_size.width;
+ }
}
// Set block height