Sha256: 36a6724e6c9ae5197faf3083e5eb9c23fb18bc3e5f8c8b4cdf79f896558f4ba6

Contents?: true

Size: 1.76 KB

Versions: 6

Compression:

Stored size: 1.76 KB

Contents

{I"
class:EFI"ProcessedAsset;FI"logical_path;FI"!umlaut/ensure_window_size.js;TI"
pathname;FI"`/Users/jrochkind/code/umlaut-rails4/app/assets/javascripts/umlaut/ensure_window_size.js.erb;TI"content_type;FI"application/javascript;FI"
mtime;Fl+l»SI"length;FißI"digest;F"%e3a95d32f2a0cfd75eae6804df09b5d7I"source;FI"ß// 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;F"%14e7b250997a18fc9bae91a9547c2038I"required_paths;F[I"`/Users/jrochkind/code/umlaut-rails4/app/assets/javascripts/umlaut/ensure_window_size.js.erb;TI"dependency_paths;F[{I"	path;FI"`/Users/jrochkind/code/umlaut-rails4/app/assets/javascripts/umlaut/ensure_window_size.js.erb;TI"
mtime;FI"2014-07-07T17:17:32-04:00;FI"digest;F"%48fcc5d04a0f9b8f01c0b319db70fb6dI"
_version;F"%f9f39fb687a2f0a0ceb7a52f07025205

Version data entries

6 entries across 3 versions & 1 rubygems

Version Path
umlaut-4.0.0.beta3 ./test/dummy/tmp/cache/assets/test/sprockets/1e127abfd1414d0de67e3d78570c8195
umlaut-4.0.0.beta3 ./test/dummy/tmp/cache/assets/test/sprockets/5bdde916a6e5824d9c695657aaada893
umlaut-4.0.0.beta2 ./test/dummy/tmp/cache/assets/test/sprockets/1e127abfd1414d0de67e3d78570c8195
umlaut-4.0.0.beta2 ./test/dummy/tmp/cache/assets/test/sprockets/5bdde916a6e5824d9c695657aaada893
umlaut-4.0.0.beta1 ./test/dummy/tmp/cache/assets/test/sprockets/1e127abfd1414d0de67e3d78570c8195
umlaut-4.0.0.beta1 ./test/dummy/tmp/cache/assets/test/sprockets/5bdde916a6e5824d9c695657aaada893