1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

CSS: devious work-around for px unit to absolute calculation

This commit is contained in:
Jonas Fonseca 2007-09-06 23:29:36 +02:00
parent 146c6e650d
commit 76fba5fcd8

View File

@ -55,7 +55,9 @@ length_absolute(int base, struct css_length *len)
/* Our base 1em size is
* HTML_CHAR_HEIGHT x HTML_CHAR_HEIGHT
* in pixels. */
return len->value.pxsize * 100 / HTML_CHAR_HEIGHT;
/* FIXME: Disabled the 100 since 40px turns up
* as a biiiig value. */
return len->value.pxsize /* * 100 */ / HTML_CHAR_HEIGHT;
case CSS_LEN_ABSOLUTE:
/* CSS2 says that