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

Web and WebWorks Development

Reply
Contributor
docaholic
Posts: 39
Registered: ‎05-03-2012
My Carrier: Fido

bbUI buttons always stretching

I'm having a bit of a problem using the bbUI buttons.

 

When I type in this:

 <div data-bb-type="button" onclick="alert('Hello!');">Hello</div>

 I'm expecting a button to just surround the word "Hello", but in reality, (at least in Ripple), the button shows up as stretched across the entire screen!

 

What's going on here? I'm using the latest version of bbUI (0.9.4) for both the .js and the .css file.

 

Thanks!

Please use plain text.
Developer
The_Anomaly
Posts: 319
Registered: ‎08-06-2012

Re: bbUI buttons always stretching

Yeah I too would like to see an option to only have the text wrapped but yes for now the buttons stretch.

 

If you want better assistance on BBui stuff you can subnmit to github bbui issues:

https://github.com/blackberry/bbUI.js/issues?state=open

 

There may be someone whose even solved this there...

If it helped you, click like. :smileyhappy:
Please use plain text.