mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 05:44:51 +02:00
Fixed removing zero height/width elements
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user