Hybrid View
-
29 Jun 2010 2:01 AM #1
[OPEN-1084]Ext.ux.form.SpinnerField and non defered rendering
[OPEN-1084]Ext.ux.form.SpinnerField and non defered rendering
hi team,
i am using the spinnerField inside a tabPanel with the config
when the field is not in the first active tab,Code:deferredRender : false
this leads to the following display errors:
1) the width gets increased by about 20px (the width of the trigger-elements)
2) the splitter-element (this.splitter) gets displayed over the left side of the input fieldCode:if (!f.width) { this.wrap.setWidth(el.getWidth() + this.trigger.getWidth()); }
the el.setTop() - method seems to work right, el.setRight() has no chance, since the width is not known when rendering the element invisible. maybe something like setLeft (el.getWidth() - (Ext.isIE) ? 1 : 2).Code:this.splitter.setRight((Ext.isIE) ? 1 : 2).setTop(10).show();
i will try a bit more changing the constructor and let you know if i find a hotfix.
with kind regards
tobiu
-
29 Jun 2010 5:26 AM #2
this fix might not be written perfect, but it seems to solve the issue.
tested with defered and non defered rendering in firefox
Code:doRender: function(ct, position){ var el = this.el = this.field.getEl(); var f = this.field; if (!f.wrap) { f.wrap = this.wrap = el.wrap({ cls: "x-form-field-wrap" }); } else { this.wrap = f.wrap.addClass('x-form-field-wrap'); } this.trigger = this.wrap.createChild({ tag: "img", src: Ext.BLANK_IMAGE_URL, cls: "x-form-trigger " + this.triggerClass }); if (!f.width) { this.wrap.setWidth(el.getWidth() + this.trigger.getWidth()); } this.splitter = this.wrap.createChild({ tag: 'div', cls: this.splitterClass, style: 'width:13px; height:2px;' }); var tw = this.trigger.getWidth(); tw = tw > 0 ? tw : 17; tw -= (Ext.isIE) ? 1 : 2; var l = (f.initialConfig.width - tw); this.splitter.setTop(10).setLeft(l).show(); this.proxy = this.trigger.createProxy('', this.splitter, true); this.proxy.addClass("x-form-spinner-proxy"); this.proxy.setStyle('left', '0px'); this.proxy.setSize(14, 1); this.proxy.hide(); this.dd = new Ext.dd.DDProxy(this.splitter.dom.id, "SpinnerDrag", { dragElId: this.proxy.id }); this.initTrigger(); this.initSpinner(); }
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[OPEN-905] Ext.ux.form.SpinnerField change event does not fire
By yakovsh in forum Ext 3.x: BugsReplies: 4Last Post: 23 Jul 2010, 4:51 AM -
[OPEN-1085]Ext.ux.form.SpinnerField -> disable / enable
By tobiu in forum Ext 3.x: BugsReplies: 0Last Post: 29 Jun 2010, 5:54 AM -
[OPEN] [OPEN-1083] Ext.ux.form.SpinnerField -> removing focus css
By tobiu in forum Ext 3.x: BugsReplies: 0Last Post: 29 Jun 2010, 5:00 AM -
[FIXED][3.0.0] Ext.ux.form.SpinnerField
By hschaefer123 in forum Ext 3.x: BugsReplies: 4Last Post: 11 Jul 2009, 8:54 PM -
[2.??] Defered Focus causes much Grief in Grid
By Mjollnir26 in forum Ext 2.x: BugsReplies: 0Last Post: 10 Oct 2008, 5:34 AM


Reply With Quote