Fixed removing zero height/width elements

This commit is contained in:
M66B 2020-02-10 19:56:23 +01:00
parent 2c11b9c0b1
commit e6749d5ef1
1 changed files with 1 additions and 1 deletions

View File

@ -778,8 +778,8 @@ public class HtmlHelper {
return Float.parseFloat(value.substring(0, value.length() - 2).trim());
if (value.endsWith("px"))
return Integer.parseInt(value.substring(0, value.length() - 2).trim()) / 16f;
return Integer.parseInt(value.trim()) / 16f;
} catch (NumberFormatException ignored) {
}
return null;