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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Regular Contributor
Sanjit_Patra
Posts: 56
Registered: ‎01-08-2013
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

Please use plain text.
Developer
Curahee
Posts: 122
Registered: ‎01-12-2013
My Carrier: -

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!

______________________________________________________
Voetbal afgelast in België? Check at AppWorld
Please use plain text.
Regular Contributor
Sanjit_Patra
Posts: 56
Registered: ‎01-08-2013
My Carrier: Airtel

Re: Decrease height of TextField

Hi Curahee,

 

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

Please use plain text.
Developer
Zmey
Posts: 897
Registered: ‎12-18-2012

Re: Decrease height of TextField

[ Edited ]

Accidentally double posted, please delete. )

Please use plain text.
Developer
Zmey
Posts: 897
Registered: ‎12-18-2012

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.

 

Please use plain text.