Open GoogleCodeExporter opened 9 years ago
here's a hint:
if you override the "_get_left" method on IncrementalTextLayout
replacing:
elif self._anchor_x == 'center':
return self._x - width // 2
with this:
elif self._anchor_x == 'center':
return self._x - min(self.width, self.content_width) // 2
it fixes this issue... as I'm not sure if this breaks something else.. I've
made this
changes on a separate class, extending the original IncrementalTextLayout.
see the attached file... it's exactly like the original, but using this "fix".
it works as expected.. the only problem I see is one or two pixels offset.. but
I can
deal with that. ;)
hope it helps to fix the issue.
oh, I also removed the "begin_update" "end_update" on the attached sample, as I
see
it was not needed and created even more glitches.
Original comment by averstra...@gmail.com
on 20 Jan 2010 at 11:52
Attachments:
Original issue reported on code.google.com by
averstra...@gmail.com
on 20 Jan 2010 at 1:16Attachments: