diff options
author | Gonzalo Odiard <godiard@gmail.com> | 2013-04-11 15:14:56 (GMT) |
---|---|---|
committer | Gonzalo Odiard <godiard@gmail.com> | 2013-04-11 17:48:56 (GMT) |
commit | a4c765a0cecf34b42ea86a1aad5f03cf49227d2a (patch) | |
tree | 86284c2d77647b310984d626f7843af80c3122c5 /persistencia.py | |
parent | 947c489b1296de7ad0f20788467690ab75aec57f (diff) |
Fix movement of textview when the globe is resized
After the change to use a textview to edit text, this was a pending
issue. Is solved using the HBox around the text view to calculate
the real size. The x, y coordinates in the class CuadroTexto
were removed, using the values in the parent Globe.
Signed-off-by: Gonzalo Odiard <gonzalo@laptop.org>
Diffstat (limited to 'persistencia.py')
-rw-r--r-- | persistencia.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/persistencia.py b/persistencia.py index 6741955..dda4829 100644 --- a/persistencia.py +++ b/persistencia.py @@ -62,8 +62,6 @@ class Persistence: globoData['text_width'] = globo.texto.ancho globoData['text_height'] = globo.texto.alto - globoData['text_x'], globoData['text_y'] = \ - globo.texto.x, globo.texto.y globoData['text_text'] = globo.texto.text globoData['text_color'] = globo.texto.color @@ -172,8 +170,6 @@ class Persistence: globo.texto.ancho = globoData['text_width'] globo.texto.alto = globoData['text_height'] - globo.texto.x, globo.texto.y = globoData['text_x'], \ - globoData['text_y'] globo.texto.text = globoData['text_text'] globo.texto.color = globoData['text_color'] |