Extending text view area

About Monkey 2 Forums Monkey 2 Programming Help Extending text view area

This topic contains 1 reply, has 1 voice, and was last updated by  Hezkore 1 year, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #8780

    Hezkore
    Participant

    I’m using canvas.Scale to make everything much smaller, but text view areas still only render a tiny bit.
    Is there a way to make them render more, or take canvas scale into account?

    In this picture the text view area is free to render on the entire gray area, but only renders a tiny bit at the top.
    It’s as if it counts the font size to still be large.

    UPDATE: I’ve figured out that if you use Layout=”float” and set Gravity correctly (Gravity=New Vec2f(1,0) in my case), the text field will expand the way I want it to.

    Problem is that Word Wrap now behaves very oddly… :S

    #8784

    Hezkore
    Participant

    Sadly the only example of this can be found in my fork of Ted2Go in the “code map” view
    https://github.com/Hezkore/Ted2Go/commit/e55d69553c59ad2694465d800b41eeeed43ff8e3

    You can download my fork and compile it, the code map on the side works okay, until you enable word wrap.

    Here’s at least a gif of the word wrap issue:

    I’m guessing I’m not using OnMeasure/OnMeasureContent or one of the other OnMeasure2 methods correctly..?

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.