On Tue, May 20, 2008 at 5:41 PM, Alex Holkner <[EMAIL PROTECTED]> wrote: > > On Wed, May 21, 2008 at 3:37 AM, Nathan <[EMAIL PROTECTED]> wrote: >> >> When I add text to the IncrementalTextLayout, it appears to be showing >> up as the bottom line of the ITL's window (which is actually what I >> want, but I would expect to have to tell it 'valign=bottom' or >> something): >> >> +--------+ >> + + >> + + >> + line1 + >> +--------+ >> >> note that "line1" does not have a newline at the end of it. >> >> If I then append "line2\n" I get: >> >> +--------+ >> + + >> + + >> + line1 + >> +--------+ >> line2 >> >> 1) there was no newline after line1 -- why did line2 go to a new line? >> (line1 + line2 is much narrower than the width of the ITL) Perhaps >> insert_text pree- or appends > > Your test case writes "line1", followed by "0\n", followed by "100\n", > which appears > > line10 > 100 > > as expected.
Ah, oops. Good catch. >> 2) line2 is outside the bounds of the box >> >> Then if I drag the mouse, which does: >> >> incr_layout.x += int(dx) >> incr_layout.y += int(dy) >> >> Then the window becomes: >> >> +--------+ >> + line1 + >> + line2 + >> + + >> +--------+ > > Thanks, the layout's top was not being updated after some changes > (including text insertion); this is fixed now in r2077. I updated to 2077 and verified that the layout top fix works. Yay! Now I can proceed to more interesting parts of my project... ~ Nathan --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pyglet-users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en -~----------~----~----~----~------~----~------~--~---
