Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

Threaded View

    Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-4757 in a recent build.
  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    6
    Vote Rating
    0
    mAritz is on a distinguished road

      0  

    Default Setting a chart time axis to have a grid can cause errors with certain step/start val

    Setting a chart time axis to have a grid can cause errors with certain step/start val


    REQUIRED INFORMATION


    Ext version tested:
    • Ext 4.0.7
    • Ext 4.1-pr1
    Description:
    • Setting a chart time axis to have a grid can cause errors with certain step/start values.
    Steps to reproduce the problem:
    • 4.0.7: src/draw/Draw.js Line 1080:
    Code:
    case Ext.Date.DAY:
    testFrom = new Date(fromStat[0], fromStat[1],
    Math.floor(fromStat[2] - 1 / step[1]) * step[1] + 1, 0, 0, 0, 0);
    break;
    Input:
    Code:
    var fromStat = [2011, 10, 23, 0, 0, 0, 0]; // Wed Nov 23 2011 01:00:00 GMT+0100 (CET)
    var step = [Ext.Date.DAY, 10]; // put grid marker/line every 10 days
    Problematic part:
    Code:
    Math.floor(fromStat[2] - 1 / step[1]) * step[1]+1; // 23 - 1 / 10 = 22.9 -> floor = 22 -> 22 * 10 + 1 = 221
    Possible fix:

    Code:
    Math.floor((fromStat[2] - 1) / step[1]) * step[1]+1; // (23 - 1) / 10 = 2.2 -> floor = 2 -> 2 * 10 +1 = 21
    But i'm not sure what exactly this is supposed to accomplish. I just know that a value like 221 does NOT work.


    Btw: Steps in the same function is used multiple times for division. If steps === 0, you get 123/0 === Infinity, causing other systems that don't handle this case to fail. Ultimately ending in error messages like "undefined has no method 'substring'".
    Last edited by mAritz; 14 Dec 2011 at 1:29 AM. Reason: Comments in code examples/fix were wrong

Thread Participants: 1