mirror of https://github.com/M66B/FairEmail.git
Fixed removing zero height/width elements
This commit is contained in:
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…
Reference in New Issue