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 6055423
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:15:48+00:00 2026-05-23T08:15:48+00:00

I’ve got long labels for a couple checkboxfields in my app, and unfortunately it

  • 0

I’ve got long labels for a couple checkboxfields in my app, and unfortunately it causes some strange behavior.

screenshot

Is there any way to make this look a little better? I mean, if I ‘touch’ the gray area, the checkbox does not activate (even if the checkbox is inside the gray area)… but instead I have to click the white area. It’s just kinda confusing.

Even if I set labelWidth: '80%' to each checkboxfield, the words still wrap and show that little gray area. I’d rather that area be all white and all of it be ‘touchable’ to activate the checkbox.

  • 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-05-23T08:15:48+00:00Added an answer on May 23, 2026 at 8:15 am

    I have a same problem, I found 3 ways to fix it, choose the best way for you, I use the 3rd version. Sorry my english is not the best, I hope it will be understandable 🙁

    1st solution:
    You can add custom css entry. It will fix the problem, but if you change the theme, it could be wrong.

    .x-form-field-container {
        background: white;
    }
    

    2nd solution:
    You can use overflow hidden, but it this case the text on end will be cutted.

    .x-form-label {
        overflow: hidden;
    }
    
    .x-form-label span
    {
        white-space: nowrap;
    }
    

    3rd solution:

    You can use your label with 100% width before the field. In this case the input field’s width will 100% too.

    new Ext.form.FormPanel({
        title: 'Form name',
        scroll: 'vertical',
        items: [{
            xtype: 'fieldset',
            title: 'Fieldset title',
            items: [{
                xtype: 'field',
                html: '<div class="x-form-label" style="width:100%"><span>This is the label of the field in below</span></div>'
            },{
                xtype: 'selectfield',
                name: 'nameOfTheField'
                //without label attribute
            }]
        }]
    });
    

    EDIT

    by rockinthesixstring

    Here’s the modification that I made in order to achieve the same results.

    CSS

    .x-checkbox{ background:white;}
    

    JS

    {
        xtype: 'checkboxfield',
        name: 'updateinfo',
        label: 'Update my info',
        labelWidth: '80%',
        cls: "x-checkbox"
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
For some reason, after submitting a string like this Jack’s Spindle from a text
I've got a string that has curly quotes in it. I'd like to replace
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build
i got an object with contents of html markup in it, for example: string
I am writing an app with both english and french support. The app requests
I am using Paperclip to handle profile photo uploads in my app. They upload

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.