Results 1 to 4 of 4

Thread: Combobox shadow property is not doing anything

    Looks like we can't reproduce the issue or there's a problem in the test case provided.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2015
    Posts
    122

    Default Combobox shadow property is not doing anything

    Hi there,

    Set shadow : false in combobox, shadow appears

    See fiddle: https://fiddle.sencha.com/#fiddle/14km

    Code:
    Ext.application({
        name : 'Fiddle',
        launch : function() {
            var states = Ext.create('Ext.data.Store', {
                fields: ['abbr', 'name'],
                data : [
                    {"abbr":"AL", "name":"Alabama"},
                    {"abbr":"AK", "name":"Alaska"},
                    {"abbr":"AZ", "name":"Arizona"}
                ]
            });
            Ext.create('Ext.form.ComboBox', {
                fieldLabel: 'Choose State',
                store: states,
                queryMode: 'local',
                displayField: 'name',
                shadow : false,
                 // shadowOffset : 40,
                valueField: 'abbr',
                renderTo: Ext.getBody()
            });
        }
    });

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,256

    Default

    Because the combobox is not the thing that is floating. The floating component is the list, so:

    Code:
    Ext.application({
        name : 'Fiddle',
        launch : function() {
            var states = Ext.create('Ext.data.Store', {
                fields: ['abbr', 'name'],
                data : [
                    {"abbr":"AL", "name":"Alabama"},
                    {"abbr":"AK", "name":"Alaska"},
                    {"abbr":"AZ", "name":"Arizona"}
                ]
            });
            Ext.create('Ext.form.ComboBox', {
                fieldLabel: 'Choose State',
                store: states,
                queryMode: 'local',
                displayField: 'name',
                listConfig: {
                    shadow : false
                },
                valueField: 'abbr',
                renderTo: Ext.getBody()
            });
        }
    });
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

  3. #3
    Sencha Premium Member
    Join Date
    Apr 2015
    Posts
    122

    Default

    Thanks for the extraquick reply. You are very right, I didn't realize about that. Documentation is misleading with this type of properties.

  4. #4
    Sencha Premium Member mcCrimson's Avatar
    Join Date
    Mar 2014
    Location
    hails from the 845
    Posts
    36

    Default

    The documentation is still wrong about this. 6.0.1 classic (http://docs.sencha.com/extjs/6.0.1/c...x.html#configs) and 6.0.2 classic (http://docs.sencha.com/extjs/6.0.2/c...x.html#configs) still list shadow as a combo config and no mention of it being a listConfig.

    evidence.jpg

    I understand the distinction, but I shouldn't need to look into the forums for a post from a year ago to clarify the documentation.

Similar Threads

  1. Replies: 1
    Last Post: 31 May 2011, 4:39 AM
  2. Why the shadow of the ComboBox disappeared in IE?
    By Okid in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 24 May 2010, 1:11 AM
  3. shadow property of the modal window
    By tkm in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 27 Mar 2008, 7:58 AM
  4. Shadow on combobox only in IE
    By emkman in forum Ext 2.x: Help & Discussion
    Replies: 0
    Last Post: 11 Dec 2007, 3:35 PM

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
  •