[PATCH] Document the workaround for the one char invisible bug with comments in the code.
Stefan Schmidt
stefan at datenfreihafen.org
Wed May 21 23:44:40 CEST 2008
Signed-off-by: Stefan Schmidt <stefan at datenfreihafen.org>
---
src/zhone | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/src/zhone b/src/zhone
index 4eccc53..e868860 100755
--- a/src/zhone
+++ b/src/zhone
@@ -66,6 +66,8 @@ class pyphone_phone(edje_group):
key = source.split("_", 1)[1]
if key in ("0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "#"):
self.text.append(key)
+ # The trailing whitespace is a workaround for the one char invisible
+ # bug due to some problems with scaling of text parts.
self.part_text_set("label", "".join(self.text)+" ")
elif key in "star":
self.text.append("*")
@@ -210,6 +212,8 @@ class pyphone_sms(edje_group):
y = int(source[-1:])
key = self.button_labels[self.active][y][x]
self.text.append(key)
+ # The trailing whitespace is a workaround for the one char invisible
+ # bug due to some problems with scaling of text parts.
self.part_text_set("label", "".join(self.text)+" ")
self.set_button_text(0)
print "mouse up:", time.time()-now
--
1.5.5.1
--gr/z0/N6AeWAPJVB--
More information about the smartphones-standards
mailing list