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

Adobe AIR Development

Reply
Developer
KermEd
Posts: 171
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA
Accepted Solution

LabelButton - Squished?

Has anyone else seen this since the last update ont he dev alpha?

 

When you are in debug - no problems.

When you post your app to release - the font squishes.

 

I have this on two apps from port-a-thon.  No idea how to fix em without rebuilding the whole class..

 

IMG_00000058.png

 

IMG_00000057.png

Please use plain text.
Developer
KermEd
Posts: 171
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: LabelButton - Squished?

Confirmed as well,

 

Even pop-up buttons have squished text.

 

Setting as cachebitmap true/false - no change.    Does this with a clean labelbutton sample.  Changing sizes - no change.

 

And it also does this on Alert and Dialogs.  For now I'm replacing them all with horrible icon buttons.  But at least it should might pass appworld ....

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: LabelButton - Squished?

Can you post some simple code so others can confirm this?
Please use plain text.
Developer
KermEd
Posts: 171
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: LabelButton - Squished?

Will do,

 

A blank project with just a LabelButton does it. 

debug mode - looks normal

release mode - text squishes.

 

Right now I changed them to a custom button just to get me through BB10 release.  At this point, I'm no longer using any of the buttons for FUSE UI.  But I can't do anything abuot the popup buttons without major work  :smileysad:

 

Let me post some samples.

Please use plain text.
Developer
jtegen
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: LabelButton - Squished?

Its odd. I use the LabelButton in many apps and they work fine in debug and release mode. Something else might be going on.
Please use plain text.
Developer
UberschallSamsara
Posts: 1,017
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: LabelButton - Squished?


jtegen wrote:
Its odd. I use the LabelButton in many apps and they work fine in debug and release mode. Something else might be going on.

Ditto - my LabelButtons look normal for both debug and release builds.  I use the commandline tools.

Please use plain text.
Developer
KermEd
Posts: 171
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: LabelButton - Squished?

I'm hoping its just me.  Using Flash Builder 4.6 and Gold SDK.

 

I put ugly icon buttons in place for now - but I'm hoping its my Flash Builder linking to the old Tablet SDK in a dumb way or something.  I bought a super nice (and super expensive) laptop on the weekend, so I'll have a fresh image to use soon.

 

Thanks for sharing guys, I'll chaulk this up as my computer hates me and the issue needs investigating and mark it as closed.  If the bug still exists later, ill open a new request and backlink, but its semi resolved in that you guys provide its not happening to everyone.

 

Ed

Please use plain text.
Developer
KermEd
Posts: 171
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: LabelButton - Squished?

Fyi,

 

I've reinstalled the SDK. Removed all preivous SDKs. 

 

Two of my apps still appear with this wierd squished font effect.  The others do not.

 

I'm still trying to troubleshoot my way through it.

 

But its still consistent (it only happens in Release, not in Debug.  And it happens to Alerts as well).

 

I used Icon buttons for the buttons, but because of the Alert button using a LabelButton, I can't get the "Ok" to appear without being all squished.  As such, both apps were denied by the Appworld team who have promptly emailed me and told me to "go figure it out".

 

So, still havent gotten much farther.  Still having the issue.  Even with disconnecting and reconnecting the API's.

 

But I'll keep looking at it (reluctantly) until I can think of a good work-around.  I really dont want to rebuild the Alert class too.  But I might have no choice.

 

Ed.

Please use plain text.
Developer
UberschallSamsara
Posts: 1,017
Registered: ‎12-29-2010
My Device: PlayBook, Z10 LE, Dev Alpha C

Re: LabelButton - Squished?

Have you tried doing your final release build using the commandline tools?

Please use plain text.
Developer
KermEd
Posts: 171
Registered: ‎05-18-2009
My Device: NA
My Carrier: NA

Re: LabelButton - Squished?

I've finally narrowed it down.

 

Anytime I have:

    static public var myLabel:Label = new Label();

 

Regardless of it having nothing to do with the iconLabels on the page, it creates the problem.  Here is a simple sample code someone can use to replicate if they are bored or need to.

 

Problem solved.  Use a static label and it messes up all your icon labels - only when you build it as a release.

 

Here is a sample BAR

 

http://www.filearchivehaven.com/downloads/LabelBtn_BreakTest%207.bar

 

And some code for fun

 

package
{
 import flash.display.Sprite;
 import flash.display.StageAlign;
 import flash.display.StageScaleMode;
 
 import qnx.fuse.ui.buttons.LabelButton;
 import qnx.fuse.ui.text.Label;
 
 public class LabelBtn_BreakTest extends Sprite
 {
  public var myBtnTest:LabelButton = new LabelButton();
  public var myBtnTest2:LabelButton = new LabelButton();

  static public var myLabel:Label = new Label(); // <--- this line causes the problem
  public function LabelBtn_BreakTest()
  {
   super();
   
   myBtnTest.label = "Test";
   myBtnTest.x = 0;
   myBtnTest.width = 250;
   myBtnTest.height = 100;
   
   myBtnTest2.label = "Test 2";
   myBtnTest2.x = 250;
   myBtnTest2.width = 250;
   myBtnTest2.height = 100;
   
   addChild(myBtnTest);
   addChild(myBtnTest2);
   
  }
 }
}

 

Cheers,

 

Ed.

Please use plain text.