comparison src/cagou/plugins/plugin_wid_chat.kv @ 59:2aa44a82d0e7

chat: XHTML image size handling: display image full size if possible, else resize it to fit in container. if height and or width attribute of <img> are specified, they are used instead of actual image size.
author Goffi <goffi@goffi.org>
date Sun, 02 Oct 2016 13:29:37 +0200
parents 7aa2ffff9067
children 46d962910801
comparison
equal deleted inserted replaced
58:7aa2ffff9067 59:2aa44a82d0e7
22 <SimpleXHTMLWidgetText>: 22 <SimpleXHTMLWidgetText>:
23 size_hint: None, None 23 size_hint: None, None
24 size: self.texture_size 24 size: self.texture_size
25 25
26 <SimpleXHTMLWidgetImage>: 26 <SimpleXHTMLWidgetImage>:
27 size_hint: 1, None 27 size_hint: None, None
28 28
29 <MessAvatar>: 29 <MessAvatar>:
30 size_hint: None, None 30 size_hint: None, None
31 size: dp(30), dp(30) 31 size: dp(30), dp(30)
32 32