changeset 102:20251d926cc2

chat: fixed bad size_hint setting on XHTML
author Goffi <goffi@goffi.org>
date Thu, 05 Jan 2017 20:36:41 +0100
parents d5ede9281e4c
children c601e3d40342
files src/cagou/plugins/plugin_wid_chat.py
diffstat 1 files changed, 2 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/cagou/plugins/plugin_wid_chat.py	Thu Jan 05 20:36:40 2017 +0100
+++ b/src/cagou/plugins/plugin_wid_chat.py	Thu Jan 05 20:36:41 2017 +0100
@@ -27,7 +27,6 @@
 from kivy.uix.stacklayout import StackLayout
 from kivy.uix.textinput import TextInput
 from kivy.uix.label import Label
-from kivy.uix.image import AsyncImage
 from kivy.metrics import dp
 from kivy.utils import escape_markup
 from kivy import properties
@@ -35,7 +34,7 @@
 from sat_frontends.quick_frontend import quick_chat
 from sat_frontends.tools import jid, css_color, strings as sat_strings
 from cagou.core import cagou_widget
-from cagou.core.image import Image
+from cagou.core.image import Image, AsyncImage
 from cagou import G
 from xml.etree import ElementTree as ET
 import webbrowser
@@ -213,7 +212,7 @@
                     wid.width = wid.texture_size[0]
                 self.content_width = wid.width + self.padding[0] + self.padding[2]
             else:
-                wid.size_hint(1, None)
+                wid.size_hint = (1, None)
                 wid.height = 100
                 self.content_width = self.width
         else: