Sha256: 6b1dff6995021ea10f4e7c79477fab2d2df65a5c1d9171128cc8c65df2881057

Contents?: true

Size: 1.8 KB

Versions: 2

Compression:

Stored size: 1.8 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"!umlaut/ensure_window_size.js;FI"
pathname;TI"o/Users/jrochkind/.gem/ruby/2.2.2/gems/umlaut-4.1.4/app/assets/javascripts/umlaut/ensure_window_size.js.erb;FI"content_type;TI"application/javascript;TI"
mtime;Tl+ÂYRUI"length;TißI"digest;TI"%e34026decd5b537fab105b25748584c0;FI"source;TI"ß// Some code to re-size our window to config defined minimum height/width
//     We have little control over what size a content provider generates a
//     window for a link resolver. Often it's too small. So we resize in
//     js.

// Some browsers won't let us resize the window though. Oh well, we try. 
// Those that wont' let us just silently no-op. 

jQuery(document).ready(function($) {    
  var min_width = 820;
  var min_height = 400;

  // Default to something huge, so if we fail in getting dimensions,
  // we won't resize. 
  var orig_width = 100000; 
  var orig_height = 100000;
  
  // JQuery document viewport width/height 
  
  orig_width = $(window).width();
  orig_height = $(window).height();
  
  
  
  width_diff = min_width - orig_width;
  height_diff = min_height - orig_height;
  
  if (width_diff < 0) { width_diff = 0 }
  if (height_diff < 0) { height_diff = 0 }
  
  if (width_diff >0 || height_diff > 0) {
    window.resizeBy(width_diff, height_diff)
  }
});
;TI"dependency_digest;TI"%bd00b63c6726e4575bff1318e0b44af9;FI"required_paths;T[I"o/Users/jrochkind/.gem/ruby/2.2.2/gems/umlaut-4.1.4/app/assets/javascripts/umlaut/ensure_window_size.js.erb;FI"dependency_paths;T[{I"	path;TI"o/Users/jrochkind/.gem/ruby/2.2.2/gems/umlaut-4.1.4/app/assets/javascripts/umlaut/ensure_window_size.js.erb;F@I"2015-05-12T15:51:30-04:00;T@I"%7e5b1a55aef2da69c12e9bcfcf67cc1f;FI"
_version;TI"%4bf7b15359fe8e0974f7f263e26e27f4;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
umlaut_borrow_direct-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/10c1161d0c19a0a4ace207fe9df13a6b
umlaut_borrow_direct-1.0.1 test/dummy/tmp/cache/assets/test/sprockets/49fd28607fba5edc9989a616b7ac40fb