Problem with the release of Sencha extjs with lame version 52 + Vb.net

When I use the percentage width or float for the sencha extjs panel, then set the left position and width in the scientific notation of sencha extjs. I also used extjs with the Vb.net framework.

See screenshot

Please See here for Screenshot of this problem

Can you provide a solution to this problem?

+4
source share
2 answers

the following function has been changed in ext-all-debug.js

beforeSetPosition: function (x, y, animate) {
    var pos, x0;

    //change start here
    x = parseInt(x);
    y = parseInt(y);
    //change end here        

    if (!x || Ext.isNumber(x)) {
        pos = { x: x, y : y, anim: animate };
    } else if (Ext.isNumber(x0 = x[0])) { 
        pos = { x : x0, y : x[1], anim: y };
    } else {
        pos = { x: x.x, y: x.y, anim: y }; 
    }

    pos.hasX = Ext.isNumber(pos.x);
    pos.hasY = Ext.isNumber(pos.y);


    this.x = pos.x;
    this.y = pos.y;

    return (pos.hasX || pos.hasY) ? pos : null;
},

instead

beforeSetPosition: function (x, y, animate) {
    var pos, x0;

    if (!x || Ext.isNumber(x)) {
        pos = { x: x, y : y, anim: animate };
    } else if (Ext.isNumber(x0 = x[0])) { 
        pos = { x : x0, y : x[1], anim: y };
    } else {
        pos = { x: x.x, y: x.y, anim: y }; 
    }

    pos.hasX = Ext.isNumber(pos.x);
    pos.hasY = Ext.isNumber(pos.y);


    this.x = pos.x;
    this.y = pos.y;

    return (pos.hasX || pos.hasY) ? pos : null;
},
0
source

You need to change the value parseInt xand y. Otherwise, you need to update your browser above version 52 chrome.

0
source

Source: https://habr.com/ru/post/1652590/


All Articles