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

  • SEARCH
  • Home
  • 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 8500947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T01:04:48+00:00 2026-06-11T01:04:48+00:00

I have RadioButton, just one singular RadioButton not in a Group or anything like

  • 0

I have RadioButton, just one singular RadioButton not in a Group or anything like that. I set it’s width to 100. I then give it a label which is much longer than 100px. Also, in the Skin for this RadioButton I have the Label just being a subclass of Spark Label in which I set the showTruncationTip of TextBase to true because that’s the behavior I’m looking for.

So the Label should truncate, should it not? Instead, my label shows the entire thing not truncated at 100.

However, if I do the same exact thing but with a CheckBox, it works correctly.

Here’s the MXML for my RadioButton:

<myNameSpace:RadioButton  width="100" id="radBtn1" value="1" label="Yooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo o" />

And here is the relevant part in the Skin:

<s:HGroup width="100%" left="18" gap="5" y="{ icon.height === 0 ? 2 : -4}" verticalAlign="middle">
                <myNameSpace:Icon id="icon"/>
                <myNameSpace:Label id="labelDisplay"
                                     textAlign="start"
                                     verticalAlign="middle"
                                     maxDisplayedLines="1"/>
      </s:HGroup>

And just to show you that it’s basically the same, here’s my CheckBox Code:

<myNameSpace:CheckBox id="checkBox" width="100" label="Click here to turn this On"/>

And the Skin:

<s:HGroup left="18" right="0" top="3" bottom="3" verticalCenter="0" verticalAlign="middle" width="100%">
    <myNameSpace:Label id="labelDisplay"
             textAlign="start"
             maxDisplayedLines="{getStyle('wrapLabel') ?  -1 : 1}"
             width="100%" />
    <myNameSpace:Label id="readOnlyLabel" includeIn="readOnly"/>
</s:HGroup>

So what’s going on? I even tried just doing this with a normal Spark RadioButton but even that won’t truncate.

Edit:

Well from what I’m finding out from trial and error, it seems that mx RadioButton will truncate correctly, but Spark will not. My RadioButton extends from Spark so it also will not truncate.

So question now is: How can I make a Spark RadioButton’s label truncate? As you can see from the Skin in the original post, I do have maxDisplayedLines set to 1, but it still won’t show.

  • 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. Editorial Team
    Editorial Team
    2026-06-11T01:04:49+00:00Added an answer on June 11, 2026 at 1:04 am

    If you give the Label a width, it will truncate the text. Notice in your check box case, the label has width="100%", but there’s no width in the radio button case.

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

Sidebar

Related Questions

I'm making a settings screen at the moment that will have a radiobutton group
I have multiple radiobutton lists within a fieldset tag. I only ever want one
We have a project that needs to gather survey data. On one particular page
I have created a radio group which contains two buttons, I can select one
I would like to just have user input registered when changing the radio buttons
I have 3 different radio button group in jQuery like so: <tr class=toValidate> <td>Please
ok not just checkbox, but also radio button. The thing is I have a
I have a group of radio buttons, and have styled them so that they
I have several radio buttons that get their value dynamically. Then I have some
I'm new to PHP and Javascript, and just starting a website that will have

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.