function pickerWidthPatch(offset) {
      var max_w = config.picker_width.max_width,
          min_w = config.picker_width.min_width,
          pickers = $('.navpage-pickers .selector:has(select)'),
          nav_w,
          logo_w = 0,
          float_w,
          diff,
          size;

      if (!pickers.length) {
        jslog('snd_ui16_developer_patch picked width patch failed. No pickers found.');
        return;
      }

      $('.navpage-pickers').css('display', '');
      pickers.css('width', ''); // reset so we recalculate

      nav_w = $('header.navpage-header').width();
      if (minVersion('M')) { // Madrid introduced flex grow
        $('div.navbar-header').children().outerWidth(function (i, w) { logo_w += w; });
      } else {
        logo_w = $('div.navbar-header').outerWidth();
      }
      float_w = $('div.navbar-right').outerWidth();

      diff = nav_w - logo_w - float_w - (offset || 0);

      size = 100 + (diff / pickers.length);

      size = size > max_w ? max_w : size;

      if (size < min_w) {
        $('.navpage-pickers').css('display', 'none');
        jslog('snd_ui16_developer_patch pickers hidden as less than minimum width (' + size + ' < ' + min_w + ')');
      } else {
        pickers.css('width', size);
        jslog('snd_ui16_developer_patch picker width patch applied (diff: ' + diff + '; size: ' + size + ')');
      }
    }
/**
     * Update the developer choice list widths to be a bit wider.
     * This gets the widths of various header elements and calculates the
     * remaining width available before dividing it between the pickers shown.
     *
     * @param  {Integer} offset An offset to take into account when calculating
     *                          the maximum width available.
     * @return {undefined}
     */
Update the developer choice list widths to be a bit wider.
This gets the widths of various header elements and calculates the
remaining width available before dividing it between the pickers shown.

@param  {Integer} offset An offset to take into account when calculating
the maximum width available.
@return {undefined}
Update the developer choice list widths to be a bit wider . This gets the widths of various header elements and calculates the remaining width available before dividing it between the pickers shown . @param { Integer } offset An offset to take into account when calculating the maximum width available . @return { undefined }
function pickerWidthPatch(offset) {
      var max_w = config.picker_width.max_width,
          min_w = config.picker_width.min_width,
          pickers = $('.navpage-pickers .selector:has(select)'),
          nav_w,
          logo_w = 0,
          float_w,
          diff,
          size;
      if (!pickers.length) {
        jslog('snd_ui16_developer_patch picked width patch failed. No pickers found.');
        return;
      }
      $('.navpage-pickers').css('display', '');
      pickers.css('width', ''); 
      nav_w = $('header.navpage-header').width();
      if (minVersion('M')) { 
        $('div.navbar-header').children().outerWidth(function (i, w) { logo_w += w; });
      } else {
        logo_w = $('div.navbar-header').outerWidth();
      }
      float_w = $('div.navbar-right').outerWidth();
      diff = nav_w - logo_w - float_w - (offset || 0);
      size = 100 + (diff / pickers.length);
      size = size > max_w ? max_w : size;
      if (size < min_w) {
        $('.navpage-pickers').css('display', 'none');
        jslog('snd_ui16_developer_patch pickers hidden as less than minimum width (' + size + ' < ' + min_w + ')');
      } else {
        pickers.css('width', size);
        jslog('snd_ui16_developer_patch picker width patch applied (diff: ' + diff + '; size: ' + size + ')');
      }
    }
function pickerWidthPatch ( offset ) { var max_w = config . picker_width . max_width , min_w = config . picker_width . min_width , pickers = $ ( '.navpage-pickers .selector:has(select)' ) , nav_w , logo_w = 0 , float_w , diff , size ; if ( ! pickers . length ) { jslog ( 'snd_ui16_developer_patch picked width patch failed. No pickers found.' ) ; return ; } $ ( '.navpage-pickers' ) . css ( 'display' , '' ) ; pickers . css ( 'width' , '' ) ; nav_w = $ ( 'header.navpage-header' ) . width ( ) ; if ( minVersion ( 'M' ) ) { $ ( 'div.navbar-header' ) . children ( ) . outerWidth ( function ( i , w ) { logo_w += w ; } ) ; } else { logo_w = $ ( 'div.navbar-header' ) . outerWidth ( ) ; } float_w = $ ( 'div.navbar-right' ) . outerWidth ( ) ; diff = nav_w - logo_w - float_w - ( offset || 0 ) ; size = 100 + ( diff / pickers . length ) ; size = size > max_w ? max_w : size ; if ( size < min_w ) { $ ( '.navpage-pickers' ) . css ( 'display' , 'none' ) ; jslog ( 'snd_ui16_developer_patch pickers hidden as less than minimum width (' + size + ' < ' + min_w + ')' ) ; } else { pickers . css ( 'width' , size ) ; jslog ( 'snd_ui16_developer_patch picker width patch applied (diff: ' + diff + '; size: ' + size + ')' ) ; } }
Update the developer choice list widths to be a bit wider.
Update the developer choice list widths to be a bit wider .
// reset so we recalculate // Madrid introduced flex grow