Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
ekke
Posts: 1,571
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

TextArea Beta4 issue: scrolling broken if read-only

there's a problem with TextArea in Beta4 if read-only (enabled=false)

TextArea {
            id: bodyResponse
            objectName: "bodyResponse"
            textStyle.base: SystemDefaults.TextStyles.BodyText
            verticalAlignment: VerticalAlignment.Top
            horizontalAlignment: HorizontalAlignment.Left
            enabled: false
            minHeight: 200
        }

 on a page with some text areas in Beta 3 if content was larger then field height you could scroll down / up

this is broken in Beta 4

 

I tried to add

scrollMode: {ScrollMode.Vertical}

 doessn't help.

if enabled true it works

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner
Developer
kylefowler
Posts: 526
Registered: ‎05-17-2009
My Device: 9900

Re: TextArea Beta4 issue: scrolling broken if read-only

Could always just use Label with multiline: true and a scroll view if you really need it to scroll

Like all of my posts
Developer
ekke
Posts: 1,571
Registered: ‎04-08-2010
My Device: Z10 (red Limited Edition), Q10, Z30
My Carrier: Telekom.de, O2, Vodafone

Re: TextArea Beta4 issue: scrolling broken if read-only

yes - but in this case I have situations where I set enabled to true if edit is allowed or false if not.

and have always possibility to scroll down if text is larger then height of TextArea.

 

will report an issue - worked well with beta 3

-------------------------------------------------------------------------------
ekke (independent software architect, rosenheim, germany)

BlackBerry Elite Developer
BlackBerry Platinum Enterprise Partner
International Development Mobile Apps BlackBerry 10 Cascades
Cascades - Workshops / Trainings / Bootcamps

blog: http://ekkes-corner.org videos: http://www.youtube.com/user/ekkescorner http://vimeo.com/ekkescorner/videos
bb10-development: http://appbus.org Twitter: @ekkescorner