-
3 Oct 2010 10:35 PM #1
[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.
-
4 Oct 2010 4:31 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 40
Did you configure the combobox with lazyInit:true (which is the default)?
-
5 Oct 2010 12:30 AM #3
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
});
-
5 Oct 2010 7:03 AM #4
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);
...
}
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-301] Extra style height:0px added to element
By gcallaghan in forum Sencha Touch 1.x: BugsReplies: 2Last Post: 4 Oct 2010, 10:13 AM -
RowEditor hbox element.style height
By jasonb885 in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 26 May 2009, 4:52 PM -
How to set style of the list element of combobox.
By rojar in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 29 May 2008, 12:14 AM -
How to modify style applied to the combobox's list items
By markovuksanovic in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 28 Nov 2007, 2:41 PM -
ComboBox doesn't respect existing style when transforming a select list
By alexb in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 4 Jul 2007, 8:54 AM


Reply With Quote