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
Posts: 148
Registered: ‎01-08-2013
My Device: 9860
My Carrier: Airtel

Decrease height of TextField

Hi all,

  I am new guy in blackberry 10. I want to decrease the height of TextField.

  Please help me.

Thanks

Highlighted
Developer
Posts: 230
Registered: ‎01-12-2013
My Device: z30
My Carrier: Mobile Vikings

Re: Decrease height of TextField

You can use this piece of code

textStyle.lineHeight: 0.8

 Or change the preferredHeight of the Label itself.

 

Hopefully it works!

______________________________________________________
BB10-OAuth: GitHub
Developer
Posts: 148
Registered: ‎01-08-2013
My Device: 9860
My Carrier: Airtel

Re: Decrease height of TextField

Hi Curahee,

 

       Code is work perfectly but i want basically decrease height of  background of TextField.

Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Decrease height of TextField

[ Edited ]

Accidentally double posted, please delete. )


Andrey Fidrya, @zmeyc on twitter
Developer
Posts: 1,524
Registered: ‎12-18-2012
My Device: Z30, Z10 LE, DevAlpha C, PlayBook

Re: Decrease height of TextField

[ Edited ]

There's an option to hide the background:

http://developer.blackberry.com/cascades/reference/bb__cascades__textfield.html#function-setbackgrou...

And put any other background below it using DockLayout or absolute positioning.

 


Andrey Fidrya, @zmeyc on twitter