Fixed IE9/IE10 control panel scaling bug
This commit is contained in:
parent
6bbec414bd
commit
5477c1ae3e
6 changed files with 22 additions and 10 deletions
|
|
@ -547,8 +547,8 @@ h.Fo=function(a,b){var c=this.gc;c.oh=c.Gc;c.Gc=b&31};h.qn=function(){return mi(
|
|||
function oi(a,b){var c=0,d=zc(a.V),e=d-b.Zi;0>e&&(e=0);e%b.Si>b.io&&(c|=1);e%=b.Zk;e>b.ko&&(c|=8);b.Zi=d-e;b===a.ga?(c|=b.Ag&48^48,b.Ud=!1):c=(b.Ag^=9)|240;return b.Ag=c}
|
||||
var Th={948:Y.prototype.Jn,949:Y.prototype.In,952:Y.prototype.Kn,954:Y.prototype.Ln,980:Y.prototype.rn,981:Y.prototype.qn,984:Y.prototype.sn,985:Y.prototype.pn,986:Y.prototype.tn},Uh={948:Y.prototype.Wo,949:Y.prototype.Vo,952:Y.prototype.Xo,980:Y.prototype.Fo,981:Y.prototype.Eo,984:Y.prototype.Go,985:Y.prototype.Do},Vh={960:Y.prototype.Rk,961:Y.prototype.Rk,962:Y.prototype.Vn,964:Y.prototype.Un,965:Y.prototype.Tn,970:Y.prototype.Cn,972:Y.prototype.Bn,974:Y.prototype.An,975:Y.prototype.zn},Wh={954:Y.prototype.bm,
|
||||
960:Y.prototype.am,961:Y.prototype.am,962:Y.prototype.Zo,964:Y.prototype.fp,965:Y.prototype.ep,970:Y.prototype.Ro,972:Y.prototype.Qo,974:Y.prototype.Po,975:Y.prototype.Oo,986:Y.prototype.bm};
|
||||
Aa(function(){for(var a=Ua(window.document,"pcjs","video"),b=0;b<a.length;b++){var c=a[b],d=Sa(c),e=window.document.createElement("canvas");if(void 0===e){c.innerHTML="<br/>Missing <canvas> support; try a new web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(e.style.height=(c.clientWidth*
|
||||
d.screenHeight/d.screenWidth|0)+"px",c.onresize=function(a,b,c,d){return function(){b.style.height=(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight));c.appendChild(e);var f=window.document.createElement("textarea");va("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ta(d,c)}});
|
||||
Aa(function(){for(var a=Ua(window.document,"pcjs","video"),b=0;b<a.length;b++){var c=a[b],d=Sa(c),e=window.document.createElement("canvas");if(void 0===e){c.innerHTML="<br/>Missing <canvas> support; try a new web browser.";break}e.setAttribute("class","pcjs-canvas");e.setAttribute("width",d.screenWidth);e.setAttribute("height",d.screenHeight);e.style.backgroundColor=d.screenColor;e.style.height="auto";0<=(window?window.navigator.userAgent:"").indexOf("MSIE")&&(c.onresize=function(a,b,c,d){return function(){b.style.height=
|
||||
(a.clientWidth*d/c|0)+"px"}}(c,e,d.screenWidth,d.screenHeight),c.onresize());c.appendChild(e);var f=window.document.createElement("textarea");va("iOS")&&(f.setAttribute("autocapitalize","off"),f.setAttribute("autocorrect","off"));c.appendChild(f);var g=e.getContext("2d"),d=new Y(d,e,g,f,c);Ta(d,c)}});
|
||||
function pi(a){this.Nk=a.adapter;switch(this.Nk){case 1:this.Nj=1016;this.kg=4;break;case 2:this.Nj=760;this.kg=3;break;default:m("Unrecognized serial adapter #"+this.Nk);return}this.Qd=null;n.call(this,"SerialPort",a,pi);var b=a.binding,c;a=qi;b&&(void 0===c&&(c="Panel"),(c=Ra(c,this.id))&&(b=c.ma[b])&&this.Eb(null,a,b))}Oa(n,pi);var qi="buffer";h=pi.prototype;h.jk=function(a,b){return a==this.Ki?(this.Zd=b,this):null};
|
||||
h.Eb=function(a,b,c){var d=this;switch(b){case qi:return this.ma[b]=this.Qd=c,c.onkeydown=function(a){a=a||window.event;var b=a.keyCode;8===b&&(a.preventDefault&&a.preventDefault(),ri(d,[b]))},c.onkeypress=function(a){a=a||window.event;ri(d,[a.which||a.keyCode])},!0}return!1};h.yc=function(a,b,c,d){this.ka=b;this.V=c;this.Ra=d;this.ca=cb(a,"ChipSet");Jb(b,this,si,this.Nj);Lb(b,this,ti,this.Nj);p(this)};h.bc=function(a,b){if(!b)if(!a||!this.restore)this.reset();else if(!this.restore(a))return!1;return!0};
|
||||
h.ac=function(a){return a&&this.save?this.save():!0};h.reset=function(){this.Xd()};h.save=function(){var a=new Pd(this),b=0,c=[];c[b++]=this.ci;c[b++]=this.pk;c[b++]=this.Te;c[b++]=this.Og;c[b++]=this.Ld;c[b++]=this.te;c[b++]=this.ad;c[b++]=this.Dc;c[b++]=this.nk;c[b]=this.Gf;a.set(0,c);return a.data()};h.restore=function(a){return this.Xd(a[0])};
|
||||
|
|
|
|||
Loading…
Reference in a new issue