Skip to content

Commit 68f4e20

Browse files
committed
Fixed: line left position is incorrect in element with left padding and floated box in the padding area.
This closes #51
1 parent 4e9c2c9 commit 68f4e20

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/html_tag.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1179,13 +1179,11 @@ void litehtml::html_tag::get_line_left_right( int y, int def_right, int& ln_left
11791179
el_parent->get_line_left_right(y + m_pos.y, def_right + m_pos.x, ln_left, ln_right);
11801180
}
11811181
ln_right -= m_pos.x;
1182+
ln_left -= m_pos.x;
11821183

11831184
if(ln_left < 0)
11841185
{
11851186
ln_left = 0;
1186-
} else if(ln_left)
1187-
{
1188-
ln_left -= m_pos.x;
11891187
}
11901188
}
11911189
}

0 commit comments

Comments
 (0)