diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-06 19:41:49 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2008-03-06 19:41:49 +0000 |
commit | ceb5f5ff7f9421f2a670768c4cde8fe0b4694aa2 (patch) | |
tree | 6216a2bdca39400f682df0368acddb4459d7a5b5 /render | |
parent | fed99c2cb5fbc69cf74b0bf0f60210a9ca6fab8c (diff) | |
download | netsurf-ceb5f5ff7f9421f2a670768c4cde8fe0b4694aa2.tar.gz netsurf-ceb5f5ff7f9421f2a670768c4cde8fe0b4694aa2.tar.bz2 |
Round percentage widths to nearest pixel instead of down.
svn path=/trunk/netsurf/; revision=3891
Diffstat (limited to 'render')
-rw-r--r-- | render/layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/render/layout.c b/render/layout.c index 6b835d526..f5dca7c89 100644 --- a/render/layout.c +++ b/render/layout.c @@ -738,8 +738,8 @@ void layout_find_dimensions(int available_width, style); break; case CSS_WIDTH_PERCENT: - *width = available_width * - style->width.value.percent / 100; + *width = 0.5 + (available_width * + style->width.value.percent / 100.0); /* gadget widths include margins, * borders and padding */ if (box->gadget) { |