-
5 Oct 2010 11:51 AM #1
ComboBox dropdown placement
ComboBox dropdown placement
I have a weird issue happening. I have a ComboBox defined, and when I click to expand it, the drop down portion shows in the very left/top portion of the browser window - looks like it is getting set to x=0 and y=0 concerning it's placement. See below screenshot for an example.
extjs_combobox_dropdown_placement.png
Here is the FormPanel definition:
Any ideas?PHP Code:var fp5xGen = new Ext.form.FormPanel({
id:'fp5xGen',
frame:true,
hidden:true,
layout:'anchor',
padding:'5',
layoutConfig:{},
title:'Section 5.A.x',
buttonAlign:'center',
items:[
{
id:'hlpTxt5xGen_1',
xtype: 'displayfield',
cls:'directionsText',
border: false
},new Ext.Panel({
id:'fp5xGen.1',
layout:'table',layoutConfig:{columns:2},
items:[
{
id:'lblMBRNUM',
xtype:'label',
text:'Who?',
cellCls:'cellTop'
},new Ext.form.ComboBox({
id:'MBRNUM',
store:mbrPerStore,
valueField:'vfld',
displayField:'dfld',
emptyText:'Select an entry...',
triggerAction:'all',
editable:false,
width:130,
cellCls:'cellTop'
})]
})
],
buttons:[
{id:'btnNext5AGen',text:'NEXT',handler:btnHandler}]
});
AaronBartell.com
www.OpenRPGUI.com
-
6 Oct 2010 1:51 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 41
You could write a getListParent method for the ComboBox that returns the table cell instead of the document body.
-
6 Oct 2010 4:53 AM #3
What is this? Perhaps this config is causing the issue.
Code:cellCls:'cellTop'
-
6 Oct 2010 7:33 AM #4
Here is how cellTop is defined:
Removing the cellCls property fixed the issue! I am guessing this is what Condor was alluding to also.PHP Code:.cellTop
{
vertical-align: top;
padding:2px 2px 2px 2px;
}
AaronBartell.com
Similar Threads
-
Placement of variable for use in combobox url
By Tumac in forum Ext 3.x: Help & DiscussionReplies: 6Last Post: 7 Jul 2010, 3:44 PM -
Combobox DisplayField Templating on the Combobox same as Dropdown
By CrazyEnigma in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 24 Jun 2010, 8:21 AM -
Combobox dropdown list with less width that the ne defined by the combobox [SOLVED]
By luisparada in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 4 Feb 2010, 6:19 AM -
combobox dropdown off center
By neenhouse in forum Ext 2.x: Help & DiscussionReplies: 1Last Post: 9 Jul 2008, 1:00 PM


Reply With Quote