1. JavaScript / Говнокод #22097

    −48

    1. 1
    2. 2
    3. 3
    4. 4
    5. 5
    // fuckin IE8/9/10/11 sometimes returns 0 for dimensions. this weird hack was the only thing that worked
            both.css({
                position: 'relative', // cause a reflow, which will force fresh dimension recalculation
                left: -1 // ensure reflow in case the el was already relative. negative is less likely to cause new scroll
            });

    Запостил: Lokich, 01 Февраля 2017

    Комментарии (1) RSS

    Добавить комментарий