-
19 Jan 2011 6:56 PM #1
Combo trigger icon appearing on left of textfield
Combo trigger icon appearing on left of textfield
Greetings!
I have a Window that contains a form which contains tab control with a few tabs. One of the tabs contains a few combos that contain listings of countries and states. For some reason, the dropdown trigger icon for the combos are appearing on the left of the text field portion of the combos, and overlapping the first couple of characters of the string. This only happens in Safari and Chrome. It seems to work fine in Firefox. Any quick suggestions on what may be causing this?
Thanks!
-
20 Jan 2011 6:53 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
could your layout not be properly configured? Are you using 3.3.1?

Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
20 Jan 2011 11:12 AM #3
I am using 3.3.1. I was inspecting the element from within Chrome and found that the following setting in the ext-all.css file was causing/affecting this:
If I removed the 'right: 0', then the trigger image appeared on the right of the text field portion of the combo, where I would naturally expect it. However, I am afraid that if I remove this from the CSS, I solve this issue, but I am not sure what other issues I will possibly be causing elsewhere.Code:.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-trigger { right: 0; /* IE8 Strict mode trigger bug */ }
-
20 Jan 2011 11:13 AM #4Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- Frederick MD, NYC, DC
- Posts
- 16,170
- Vote Rating
- 32
are you using strict doc type?
that selector will only work for the body element where ext-strict and ext-ie8 classes are applied.
Jay Garcia @ModusJesus || Modus Create co-founder
Ext JS in Action author
Sencha Touch in Action author
Get in touch for Ext JS & Sencha Touch Touch Training
We are also working on Video-based Sencha Touch training: Check it out here.
-
6 Feb 2012 1:33 AM #5
I know the same issue with ExtJs 3.4 and IE 8...
As Karnac said, the problem comes from the ext-all.css file:
I would like to know how to override this css without changing the source file?Code:.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-trigger { right: 0; /* IE8 Strict mode trigger bug */ }
I've tried to call removeClass() on my combo but nothing has changed... The triggered always appears on left side instead of the right side..
here is my combo:Code:skillSelectBox.removeClass('ext-strict ext-ie8 x-toolbar-cell x-form-field-trigger-wrap x-form-trigger');
this combo is in a toolbar:Code:var skillSelectBox = new Ext.form.ComboBox({ store: availableSkillStore, id:'skillSelectBox', name:'skillSelectBox', hideMode:'offsets', labelStyle: 'width: 75px', displayField: "skillLabel", valueField: "skillKeyWord", emptyText: Label.STAT_Quellecompetence, hideLabel: true, typeAhead: false, forceSelection:true, resizable: true, editable : false, triggerAction: "all", width: 150, mode: 'local' });
which is in a grid panel:Code:var toolBar = new Ext.Toolbar({ layout: 'toolbar', hideMode:'offsets', items:[skillSelectBox, '->',addButton] });
Code:var skillGrid = new Ext.grid.EditorGridPanel({ id: "skillGrid", name: "skillGrid", store: selectedSkillStore, hideMode:'offsets', plugins: [rowActions], autoHeight: true, boxMinHeight : 240, width: 350, autoExpandColumn : "skillLabel", tbar: toolBar, bodyCssClass: "form-grid-body-style", cm: new Ext.grid.ColumnModel({ columns :[ { header: Label.all.Skills, dataIndex: 'skillLabel', menuDisabled: true, width: 235 }, { header: Label.CONF_GATE_Ageing, dataIndex: 'ageing', menuDisabled: true, align:'center', editor: ageingNumberField, width: 80 }, rowActions ] }), listeners:{ afterrender : function(thisGrid){ toJsonObject(); }, afteredit:function(e){ toJsonObject(); }, validateedit:function(e){ toJsonObject(); } }, viewConfig: {scrollOffset: 0, forceFit:true} });
-
9 Oct 2012 5:53 PM #6
In your project's css you can place the following to override the ext-all.css:
Code:.ext-strict .ext-ie8 .x-toolbar-cell .x-form-field-trigger-wrap .x-form-trigger { right: auto !important; /* IE8 fix for ext-all.css */ }
Similar Threads
-
How can I make Editor in combo and textfield have the same Left
By kiryu in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 13 Dec 2010, 5:58 PM -
Alignment problem for Combo textfield and dropdown arrow icon
By ziwen78 in forum Ext 3.x: Help & DiscussionReplies: 3Last Post: 19 Apr 2010, 5:31 PM -
Show the ListView template icon in the TextField of a Combo
By G_Taylor in forum Community DiscussionReplies: 0Last Post: 12 May 2009, 5:06 PM -
Combo Trigger Icon Display Problem
By dgms in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 8 Aug 2008, 7:36 AM


Reply With Quote