Results 1 to 5 of 5

Thread: menucheckitem's checkBox missing in column layout

    Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default menucheckitem's checkBox missing in column layout

    Hi ,

    I am not sure this is a bug or I am missing something here.

    Plateform:
    Chrome 44.0, IE11

    Tested ExtJS Ver: 4.2.1 , 5.0.1.1255, 6.0.0.640

    Description: menucheckitem's checkBox is missing in column layout but visible in other layout.

    How to reproduce: Just run the below fiddle

    https://fiddle.sencha.com/#fiddle/su8

    Snapshot:
    menuCheckItem checkbox missing.png


    Requirement : All check box should be visible with column layout too.

    Any help will be appreciated
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985

    Default

    Thanks for the report. Looking at the docs, the layout config is private, and it's the same for 5.x and 6.x. Unfortunately, I don't believe you can configure the a menu in the column layout.

  3. #3
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default

    Thanks Gary,


    After changing the config as hbox/vbox and able to see the change as hbox layout with check box with each item, then why column layout is not working.

    Output:
    hbox chekcbox.png



    Can anyone have some workaround for just two column ?
    Thank you
    ---A ship in the harbor is safe, but that is not what the ships are made for...

  4. #4
    Sencha User
    Join Date
    Jan 2015
    Location
    Vancouver
    Posts
    15

    Default

    Column layout uses "float" property. So making your items's position relative might work for you.

    So try the following.

    Code:
    defaults: {
        columnWidth: 0.5,
        style: {
            position: 'relative'
        }
     }
    But then again, like Gary said, it's not really recommended to use private config.
    I mean there's no "layout" config publicly available when you look at Ext.menu.Menu class.

  5. #5
    Sencha User SurenderBhyan1's Avatar
    Join Date
    Nov 2013
    Location
    INDIA
    Posts
    130

    Default

    Thanks Jhrinoa,
    Your workaround worked like a charm and thanks for clearing my confusion with menu layout config.


    https://fiddle.sencha.com/#fiddle/su8
    ---A ship in the harbor is safe, but that is not what the ships are made for...

Similar Threads

  1. Replies: 4
    Last Post: 20 May 2015, 2:39 PM
  2. Checkbox / Radio Group Column Layout
    By thejoker101 in forum Ext GWT: Discussion
    Replies: 1
    Last Post: 21 Feb 2011, 7:31 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •