Sha256: c0a4b2d598b05a3dd2a5b203a70d93facd6132dedfdd094b530b14594f1aaed4

Contents?: true

Size: 547 Bytes

Versions: 6

Compression:

Stored size: 547 Bytes

Contents

/* йобаный сафари не дружит с css-calc, фиксим это с помощью js */

function _map_calc_width() {

    // находим родителя
    var $parent = $dealers_map_container.parent();
    console.log($parent);

    // находим левый список
    var $dealers_list = $parent.find('.dealers_list');
    var dealers_list_width = $dealers_list.outerWidth(true);

    // считаем ширину
    var w = $parent.width() - dealers_list_width;
    $dealers_map_container.css('width', w);
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
c80_push-0.1.0.11 app/assets/javascripts/c80_push/frontend/c80_push_page_dealers/_map_calc_width.js
c80_push-0.1.0.10 app/assets/javascripts/c80_push/frontend/c80_push_page_dealers/_map_calc_width.js
c80_push-0.1.0.8 app/assets/javascripts/c80_push/frontend/c80_push_page_dealers/_map_calc_width.js
c80_push-0.1.0.7 app/assets/javascripts/c80_push/frontend/c80_push_page_dealers/_map_calc_width.js
c80_push-0.1.0.6 app/assets/javascripts/c80_push/frontend/c80_push_page_dealers/_map_calc_width.js
c80_push-0.1.0.5 app/assets/javascripts/c80_push/frontend/c80_push_page_dealers/_map_calc_width.js