-
-
Sencha User
Combo already does this. The Field class calls this.alignErrorIcon() to position it, and TriggerField (which Combo extends) overrides alignErrorIcon to align the icon to the wrapper element. Are you sure there's not something else going on in your code?
-
Sencha User
Thanks for your reply.
You can see from the screenshot that it the example it is wrong. Across the entire application however most combos (I now realise) are placing the error icon in the correct place. As yet I can't find anything different from those that don't. They are are all heavily nested in forms in cards in tabs with deferredRender at the highest level but then so are the ones that work.
If I can find the cause and it is relevant I will post a simple example for you guys to look at but it's a minor issue anyhow.
Cheers
Graeme
-
Sencha Premium Member
GraemeBryce,
Did you get to the bottom of this? I noticed my combos starting to do the same thing and I am not sure what recent work caused it.
Just wondering if you found the cause.
-
Sencha User
No I have not yet been able to identify why this is happening to SOME combo boxes and not to others when they are essentially all constructed in the same way.
I can confirm that some are rendering correctly.
I need to be able to create a simple replica of the error but clearly there is a lot of interaction between different components that eventually causes the problem. I have also observerd that an attempt to submit a form will fail beause some of the fileds (notably including combos) are required but the user has not completed them, however the invalid toolTip and Icon are not shown. I think the two issues are linked.
GB
-
Sencha Premium Member
In both my examples it seems to be combos on tabs other than the first. Is this the same as your example Graeme?
Has anyone else got combo MsgTargets working on tabs other than the first?
-
What happens if you specify defaults:{hideMode:'offsets'} in the tabpanel config?
-
Sencha Premium Member
Hi Condor,
That fixed it! Great news, many thanks. It also fixed another issue I had where in Safari the combo drop down was appearing at the beginning of the field rather than the end.
You are a star!
-
Sencha Premium Member
I spoke too soon. This fixes FireFox and Safai, but breaks the display of the tabs completely in IE7. I've also tried hideMode:'visibility'. I think the only solution for now is to not use Ext.form.Field.prototype.msgTarget = 'side'; on combos within secondary tabs.
Thanks for you help though.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules