4

In sencha Extjs 6.5.3 and 7.0.2 Modern the painted event is not triggered for all components and containers, please find the below fiddle which increment when clicked from Android,windows and even on Mac Safari, but not incrementing on iOS WKWebView (custom) and safari.

Is there any way to manually fire the painted event based on DOM Events or any alternative to the painted event? It was working on below 13.4 (iOS).

Please find this Sencha Fiddle Sample

Not working in ios 13.5.1

In ios 13.5.1

Working fine in Desktop chrome and Android devices..

enter image description here

Gowtham S
  • 923
  • 14
  • 39

3 Answers3

6

Add this style fix to app.scss. Thanks to Sencha Support.

.x-paint-monitor.cssanimation {
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
}

Now working fine.

Gowtham S
  • 923
  • 14
  • 39
2

This alone did not work for us.

Add this style fix to app.scss. Thanks to Sencha Support.

.x-paint-monitor.cssanimation {
   -webkit-animation-fill-mode: forwards;
   animation-fill-mode: forwards;
}

Now working fine.

We had issues in all webkit browsers (Chrome, Edge, Brave, Android webview,...).

The fix: increase the animation duration from 0.0001ms to al least 0.001ms (we set it to 0.01ms).

.x-paint-monitor.cssanimation {​​​​​​​
    -webkit-animation-fill-mode: forwards;
    animation-fill-mode: forwards;
    -webkit-animation-duration: 0.01ms;
    animation-duration: 0.01ms;
}​​​​​​   ​
drinovc
  • 521
  • 5
  • 16
0

This problem seems to be fixed in Safari 14 (iOS and Mac).

Your test Fiddle is green on my iPhone and Mac with version 14.

Andre
  • 475
  • 3
  • 6
  • Yeah @Andre, Got a fix from sencha support and update in the fiddle to test it, now its working fine for components. check the index.html file for the style fix. Will post it here.. – Gowtham S Oct 12 '20 at 06:52
  • Not sure this is due to iOS 13.4 + upgrade on wkwebview or something related to sencha framework itself. – Gowtham S Oct 12 '20 at 07:03
  • Even in iOS14 also the same "component painted event not fired" exists. – Gowtham S Oct 12 '20 at 07:05