diff --git a/app/assets/javascripts/theater.js b/app/assets/javascripts/theater.js index 0db4eae..5277ea7 100644 --- a/app/assets/javascripts/theater.js +++ b/app/assets/javascripts/theater.js @@ -41,6 +41,9 @@ window.GalleryTheater = function() { button_stop_string = '', playtimeoutID; var initialize = function() { + if ($('#orbit-bar').height()>0){ //for show page + $('#gallery-theater-stage>.gallery').css('margin-top','2.4em') + } stage = $("#gallery-theater-stage"); closeBtn = stage.find(".gallery-close"); switchBtn = stage.find(".gallery-theme-switch"); diff --git a/app/views/galleries/show.html.erb b/app/views/galleries/show.html.erb index bd3ff5a..2fd8a6a 100644 --- a/app/views/galleries/show.html.erb +++ b/app/views/galleries/show.html.erb @@ -86,7 +86,7 @@ <%= javascript_include_tag "theater" %> <% OrbitHelper.render_meta_tags([{"name" => "mobile-web-app-capable","content" => "yes"},{"name" => "apple-mobile-web-app-status-bar-style","content" => "black-translucent"}]) %>