pupil-labs / pyglui

cython powered OpenGL gui that works with glfw
MIT License
29 stars 20 forks source link

Menu title is neither wrapped nor clipped if it is longer than menu width #34

Closed papr closed 7 years ago

papr commented 7 years ago

image

mkassner commented 7 years ago

Yes. I think they should be clipped.

On Wed, Aug 31, 2016 at 3:26 PM, Pablo Prietz notifications@github.com wrote:

[image: image] https://cloud.githubusercontent.com/assets/168390/18130362/08a489e2-6f8f-11e6-8b4f-ddb4078e4804.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/pupil-labs/pyglui/issues/34, or mute the thread https://github.com/notifications/unsubscribe-auth/ABXgp7JPCjoWvu9uRG5kjdG9x2Qibwwqks5qlYDrgaJpZM4Jxm4z .

papr commented 7 years ago

Solution: Use draw_limited_text() instead of draw_text() image