diff cagou/kv/simple_xhtml.kv @ 409:2caea63ae2ab

chat: show attachments as clickable icons
author Goffi <goffi@goffi.org>
date Wed, 19 Feb 2020 09:49:21 +0100
parents 5868a5575e01
children efee0e0afb78
line wrap: on
line diff
--- a/cagou/kv/simple_xhtml.kv	Wed Feb 19 09:49:20 2020 +0100
+++ b/cagou/kv/simple_xhtml.kv	Wed Feb 19 09:49:21 2020 +0100
@@ -24,7 +24,7 @@
 <SimpleXHTMLWidgetEscapedText>:
     size_hint: 1, None
     text_size: self.width, None
-    height: self.texture_size[1]
+    height: self.texture_size[1] if self.text else 0
 
 <SimpleXHTMLWidgetText>:
     size_hint: None, None