Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ExtJS does not identify IE11

I have a lot of problems when ExtJS (v4.0.7) does not identify IE11.

In this case occurs many UI bugs under IE11 browser.

I couldn't use "flax: 1" for grid columns and other layout stuff.

like image 754
Nazar Vynnytskyi Avatar asked May 30 '26 10:05

Nazar Vynnytskyi


1 Answers

I found the solution which brilliantly fixed all my problems under IE11.

So, I have the HTML where I include next files:

  • < script src="lib/ext-4.0.7/ext-all.js">..........................# ExtJS lib
  • < script src="app/util/overrides/lib-overrides.js">.....# ExtJS overrides
  • < script src="app/main.js">.........................................# Application

In lib-overrides.js I insert the code which fix IE11:

Ext.apply(Ext, ((a = navigator.userAgent) && /Trident/.test(a) && /rv:11/.test(a)) ? {isIE:true, isIE11:true, ieVersion: 11} : {});
like image 174
Nazar Vynnytskyi Avatar answered Jun 01 '26 00:06

Nazar Vynnytskyi



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!