From 125b799b64e56bae84a6760a9a3c4ab18b01612d Mon Sep 17 00:00:00 2001 From: Matchu Date: Wed, 2 Apr 2014 11:11:18 -0500 Subject: [PATCH] move search motion to fullscreen view --- app/assets/javascripts/outfits/edit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/outfits/edit.js b/app/assets/javascripts/outfits/edit.js index ca2b89e2..d0668078 100644 --- a/app/assets/javascripts/outfits/edit.js +++ b/app/assets/javascripts/outfits/edit.js @@ -187,7 +187,10 @@ View.Fullscreen = function (wardrobe) { preview_swf.css(size.next); preview_el.height(available.height); - + + // If the footer goes onto two lines, nudge search up. + search_el.css('bottom', $('#footer').height()); + // Now that preview is fit, we fit the sidebar's content element, which // also has to deal with the constraint of its navbar's height. var sidebar_content_height = available.height - @@ -1108,9 +1111,6 @@ View.Search = function (wardrobe) { loadOffset(last_request.offset); } } - - // If the footer goes onto two lines, nudge search up. - form.css('bottom', $('#footer').height()); } $(window).resize(updatePerPage).load(updatePerPage); updatePerPage();