Fixed removing zero height/width elements

pull/174/head
M66B 5 years ago
parent 2c11b9c0b1
commit e6749d5ef1

@ -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;

Loading…
Cancel
Save