Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 117063
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:16:36+00:00 2026-05-11T03:16:36+00:00

First and foremost, I apologize for any vagueness in this question. At this point,

  • 0

First and foremost, I apologize for any vagueness in this question. At this point, I’m simply trying to get some new ideas of things to try in order to diagnose this bug.

Anyway, the problem I’m having is with an application that’s using a custom moduleloader. That moduleloader has been compiled into an swc and the moduleloader is being instantiated via its namespace. This all works perfectly fine. The problem I’m encountering is specific to mx:button controls used within modules. For whatever reason, their labels are being truncated so, for example, Sign In is showing up with an ellipsis, as Sign …

After quite a bit of fooling around I have been able to establish the following:

  1. This problem only seems to occur within modules. If a button control is used in the main mxml, the label does not get truncated.
  2. The button control whose label is being truncated does not have a width specified (setting its width to 100% or a specific pixel width doesn’t fix the issue)
  3. The button control is using the default padding (messing with the padding by setting left and right to 5 or any other value doesn’t help matters either).
  4. We are not using any embedded fonts so I’ve ruled that out as a possibility as well.
  5. mx:CheckBox and mx:LinkButton are equally impacted by this problem although mx:CheckBox also seems to not want to show its checkbox, it just shows the truncated label.

A potential side affect of this is that attaching a dataprovider to mx:ComboBox causes the combobox control to throw a drawing error but I’m not entirely certain that it’s related to the above problem.

One interesting thing I did find while perusing the net for an answer was a mention of fontContext and its relationship to IFlexModuleFactory. There’s no specification for fontContext within our implementation of moduleloader so I’m not entirely certain if this could be the issue. In any case, if anyone has any ideas, it would be hugely appreciated. On the other hand, if you know exactly what ails me and can provide me with an answer, I might just wet myself with excitement. It’s late. I’m tired. I NEED my Flex app to play nice.

Thanks in advance,

–Anne

Edit: To clarify what I’m looking for with this question, I really just need to know the following:

  1. Could this issue be caused by a namespace conflict?
  2. What else can potentially override the default behavior of labels if no CSS has been implemented?
  3. Has anyone encountered a problem with inheritance being lost while using a custom implementation of moduleloader?
  4. Has anyone encountered this problem or a similar problem with or without using moduleloader?

I’m not sharing any code with this question simply because I’d have to share the entire application and, unfortunately, I can’t do that. Again, I’m not looking for the end all, be all solution, just some suggestions of things to look out for if anyone has any ideas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:16:37+00:00Added an answer on May 11, 2026 at 3:16 am

    I’ve been dealing with this issue myself, off and on and in various forms, for a year, and while I haven’t figured out just what’s causing it yet, there’s clearly a mismeasurement happening somewhere along the line.

    What I have been able to to, though, is work around it, essentially by subclassing button-type controls (in my case, Button, LinkButton, PopUpButton, et. al.) and assigning their textField members instances of a UITextField extension whose truncateToFit element simply returns false in all cases:

    public class NonTruncatingUITextField extends UITextField {     public function NonTruncatingUITextField ()     {         super();     }      override public function truncateToFit(s:String = null):Boolean     {         return false;     } } 

    The custom component just extends Button (or whatever other button-type control is the culprit — I’ve created a half-dozen or so of these myself, one for each type of control), but uses a NonTruncatingTextField as its label, where specified by the component user:

    public class NonTruncatingButton extends Button {     private var _truncateLabel:Boolean;      public function NonTruncatingButton()     {         super();          this._truncateLabel = true;     }      override protected function createChildren():void     {         if (!textField)         {             if (!_truncateLabel)                 textField = new NonTruncatingUITextField();             else                 textField = new UITextField();              textField.styleName = this;              addChild(DisplayObject(textField));         }          super.createChildren();     }      [Inspectable]     public function get truncateLabel():Boolean     {         return this._truncateLabel;     }      public function set truncateLabel(value:Boolean):void     {         this._truncateLabel = value;         }    } 

    … so then finally, in your MXML code, you’d reference the custom component thusly (in this case, I’m telling the control never to truncate its labels):

    <components:NonTruncatingButton id='btn' label='Click This' truncateLabel='false' /> 

    I agree it feels like a workaround, that the component architecture ought to handle all this more gracefully, and that it’s probably something we’re both overlooking, but it works; hopefully it’ll solve your problem as you search for a more definitive solution. (Although personally, I’m using it as-is, and I’ve moved on to other things — time’s better spent elsewhere!)

    Good luck — let me know how it works out.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 72k
  • Answers 72k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Don't know if you have the latest bits from SVN… May 11, 2026 at 1:39 pm
  • added an answer You do just need to make sure that you're 'installing'… May 11, 2026 at 1:39 pm
  • added an answer This will return a count of results for each minute… May 11, 2026 at 1:39 pm

Related Questions

No related questions found

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.