mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-02-02 07:35:25 +03:00
Use fixed insted of floating point to get percentage of available_width, for width calc.
svn path=/trunk/netsurf/; revision=12869
This commit is contained in:
parent
e4a91f380c
commit
dcfd80956f
@ -1527,8 +1527,8 @@ void layout_find_dimensions(int available_width, int viewport_height,
|
||||
|
||||
if (wtype == CSS_WIDTH_SET) {
|
||||
if (unit == CSS_UNIT_PCT) {
|
||||
*width = (FIXTOFLT(value) * available_width)
|
||||
/ 100;
|
||||
*width = FPCT_OF_INT_TOINT(
|
||||
value, available_width);
|
||||
} else {
|
||||
*width = FIXTOINT(nscss_len2px(value, unit,
|
||||
style));
|
||||
|
Loading…
x
Reference in New Issue
Block a user