Here is a patch. This is for ExtJS 2.0.2.
ext-all-debug.js: after line 17999 insert the highlighted statement below:
el.className = "x-date-picker";
el.style.width = '10px';
el.innerHTML = m.join("");
ext-all.js is minified, so you have to search for "x-date-picker", then you'll see that the statement looks a bit different. Thus, we modify the patch also:
B.className="x-date-picker";B.style.width = '10px';B.innerHTML=C.join("");...
Cool! Now it's works. Let's create a community over ExtJS 2.0.2 to fix problems :)
ReplyDeleteVery nice, thank you!
ReplyDeleteIf you prefer not to modify Ext files, use this after loading Ext scripts:
ReplyDeleteExt.DatePicker.prototype.brokenOnRender = Ext.DatePicker.prototype.onRender;
Ext.DatePicker.prototype.onRender = function(container, position){
// this.update has to be called only after setting width
var originalUpdate = this.update;
this.update = Ext.emptyFn;
this.brokenOnRender(container, position);
this.el.dom.style.width = '10px';
this.update = originalUpdate;
this.update(this.value);
}
Thanks for that blog entry!!
ReplyDeleteIt really helped!!
Thanx Thats really helpful
ReplyDeleteGreat, thanks :)
ReplyDeleteFYI:
ReplyDeleteIt also works for ExtJS 1.1.1.
Perfect! Fixed for ExtJS 1.1.1 using Ondrej's comment.
ReplyDeleteGreat Job, Fixed for the latest and last free download (2.0.2?) Waves of good karma for you
ReplyDeleteOwsome. It fixed my problem. Thanks a lot.
ReplyDeleteThanks a ton
ReplyDeletewhat about in version 3.2.0?
ReplyDeletethe solution is same or not?
It's not an issue with current versions.
ReplyDeleteThank you!
ReplyDeletemy hero!
ReplyDelete