Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Ext User
    Join Date
    Jun 2010
    Posts
    7
    Vote Rating
    0
    apw is on a distinguished road

      0  

    Default [CLOSED] ComboBox list element style with height: 0

    [CLOSED] ComboBox list element style with height: 0


    Hi Guys,

    we have a little problem with our combobox which does not displays any list items. We have found out that the height of the x-combo-list is just 0...The ComboBox it self is on a Ext.Panel which is at the startup not visible/collapsed.

    <div class="x-layer x-combo-list " id="ext-gen297" style="position: absolute; z-index: 11000; visibility: visible; left: 132px; top: 577px; width: 183px; height: 0px; font-size: 12px;"><div class="x-combo-list-inner" id="ext-gen298" style="width: 183px;"><div class="search-item x-combo-selected"></div><div class="search-item"></div><div class="search-item"></div><div

    Any idea what problem it could be? We using extjs with geoext and other js libs.

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    92
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Did you configure the combobox with lazyInit:true (which is the default)?

  3. #3
    Ext User
    Join Date
    Jun 2010
    Posts
    7
    Vote Rating
    0
    apw is on a distinguished road

      0  

    Default


    Hi,
    no - but it does not solved our problem after I add it. Tested with Opera and Firefox(newest Version)


    Our combobox:

    test.Box = new Ext.form.ComboBox({
    columnWidth: 0.50,
    store: store,
    valueField: 'id',
    displayField: 'text',
    lazyRender: true,
    mode: 'local',
    value: 0,
    lazyInit:true ,
    typeAhead: true,
    triggerAction: 'all',
    editable: false
    });

  4. #4
    Ext User
    Join Date
    Jun 2010
    Posts
    7
    Vote Rating
    0
    apw is on a distinguished road

      0  

    Default


    Hi,

    EDIT: Ok you can close it. We did have found our problem. We have overwritten the JS self object.

    ok the failure happen here - i got for hb NaN.

    Ext.lib.Dom.getViewHeight(): undefined
    Even Ext.lib.Dom.getDocumentHeight() is NaN

    restrictHeight : function(){

    this.getSize().height: 22
    ha: 91
    Ext.lib.Dom.getViewHeight(): undefined

    hb = Ext.lib.Dom.getViewHeight()-ha-this.getSize().height,


    ha: 91
    hb: NaN
    minHeight: 90
    pad: 2

    space = Math.max(ha, hb, this.minHeight || 0)-this.list.shadowOffset-pad-5;

    maxHeight: 300
    space: NaN
    h: 80



    ...

    h = Math.min(h, space, this.maxHeight);

    ...
    }

Similar Threads

  1. [OPEN-301] Extra style height:0px added to element
    By gcallaghan in forum Sencha Touch 1.x: Bugs
    Replies: 2
    Last Post: 4 Oct 2010, 10:13 AM
  2. RowEditor hbox element.style height
    By jasonb885 in forum Ext 3.x: Help & Discussion
    Replies: 3
    Last Post: 26 May 2009, 4:52 PM
  3. How to set style of the list element of combobox.
    By rojar in forum Ext 2.x: Help & Discussion
    Replies: 1
    Last Post: 29 May 2008, 12:14 AM
  4. How to modify style applied to the combobox's list items
    By markovuksanovic in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 28 Nov 2007, 2:41 PM
  5. Replies: 3
    Last Post: 4 Jul 2007, 8:54 AM

Thread Participants: 1