SwarmOnline / Ext.ux.TouchCalendar

Sencha Touch Calendar component
113 stars 47 forks source link

Calendar broke with latest release of Chrome (43.0.2357.81) #38

Open bartspedden opened 9 years ago

bartspedden commented 9 years ago

On an existing app (2+ years old), using Sencha Touch 2.4.1 and the current version of TouchCalendar as per the download link on swarmonline.com the calendar is no longer working. Instead of June coming up, I am seeing May. And when I try to move forward one month it jumps to August instead of June. This works just fine on safari.

bartspedden commented 9 years ago

There's a known defect in Sencah Touch that's causing this problem (TOUCH-5716).

To resolve this I added the following code to my application launch() function.


if (Ext.browser.is.WebKit) {
            console.info(this.$className + ': Fix a Sencha Touch Bug (TOUCH-5716 / Scrolling Issues in Google Chrome v43+)');

            Ext.override(Ext.util.SizeMonitor, {
                constructor: function (config) {
                    var namespace = Ext.util.sizemonitor;
                    return new namespace.Scroll(config);
                }
            });

            Ext.override(Ext.util.PaintMonitor, {
                constructor: function (config) {
                    return new Ext.util.paintmonitor.CssAnimation(config);
                }
            });
        }