aboutsummaryrefslogtreecommitdiffstats
path: root/src/render_block_context.cpp
diff options
context:
space:
mode:
authorYuri Kobets <yuri.kobets@gmail.com>2023-02-16 18:40:17 +0300
committerYuri Kobets <yuri.kobets@gmail.com>2023-02-16 18:40:17 +0300
commit4500b2d1756098cfb3819c49400d2c9843b9ba88 (patch)
tree8f8d36d0af3b2ea5fdc52a76728ad5fb22a33ade /src/render_block_context.cpp
parent40d2071bd87ee43ae95370a8b22a6b4f3eb9a464 (diff)
New tests and fixes for inline rendering
* test10.htm - test for issue #247 * test11.htm - test for issue #249 * test12.htm - inline text rendering * test13.htm - vertical align test
Diffstat (limited to 'src/render_block_context.cpp')
-rw-r--r--src/render_block_context.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/render_block_context.cpp b/src/render_block_context.cpp
index 81ce2040..0c77c001 100644
--- a/src/render_block_context.cpp
+++ b/src/render_block_context.cpp
@@ -30,8 +30,8 @@ int litehtml::render_item_block_context::_render_content(int x, int y, int max_w
if(el->src_el()->css().get_position() == element_position_absolute || el->src_el()->css().get_position() == element_position_fixed)
{
el->render(0, child_top, max_width);
- el->pos().x += el->content_margins_left();
- el->pos().y += el->content_margins_top();
+ el->pos().x += el->content_offset_left();
+ el->pos().y += el->content_offset_top();
} else
{
child_top = get_cleared_top(el, child_top);