TextInputField in Spec size issue 12915 (was: dynamic example for spec)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

TextInputField in Spec size issue 12915 (was: dynamic example for spec)

Stephan Eggermont-3
I can set the font in MorphicTextInputFieldAdapter

adapt: aModel
       
        super adapt: aModel.
        aModel whenBuiltDo: [ :w | w widget color: Color white.
                w widget widget textMorph setTextStyle: TextStyle default ]

but then still have the wrong cursor size and position.

Stephan



Reply | Threaded
Open this post in threaded view
|

Re: TextInputField in Spec size issue 12915 (was: dynamic example for spec)

Igor Stasenko
try using 'self font:'?
MorphicTextAdaptor supports this protocol.


On 30 April 2014 15:19, Stephan Eggermont <[hidden email]> wrote:
I can set the font in MorphicTextInputFieldAdapter

adapt: aModel

        super adapt: aModel.
        aModel whenBuiltDo: [ :w | w widget color: Color white.
                w widget widget textMorph setTextStyle: TextStyle default ]

but then still have the wrong cursor size and position.

Stephan






--
Best regards,
Igor Stasenko.