firefox max-height
This commit is contained in:
parent
1486b75e8d
commit
7e939d11f0
@ -13,6 +13,12 @@
|
||||
//= require jquery
|
||||
//= require jquery_ujs
|
||||
|
||||
function size_image_blocks(){
|
||||
height = $(window).height();
|
||||
|
||||
|
||||
$('.image_block').css("height", height+"px");
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -30,6 +36,14 @@ function preload(arrayOfImages) {
|
||||
|
||||
$(document).ready(function(){
|
||||
|
||||
size_image_blocks();
|
||||
|
||||
$(window).bind('resize',function(){
|
||||
size_image_blocks();
|
||||
|
||||
});
|
||||
|
||||
|
||||
$('.miniatures').click(function (){
|
||||
|
||||
$("#small_index").toggleClass("active");
|
||||
|
@ -11,7 +11,7 @@ $headerFontWeight : bold;
|
||||
|
||||
@import "general";
|
||||
|
||||
html { height: 100%; }
|
||||
html { height: 100%;width: 100%; }
|
||||
|
||||
|
||||
body{
|
||||
@ -182,6 +182,7 @@ width:100px;
|
||||
font-family:courier;
|
||||
|
||||
.image_block{
|
||||
|
||||
display:inline-block;
|
||||
max-width:90%;
|
||||
margin:auto;
|
||||
|
@ -2,7 +2,7 @@
|
||||
$(".images").fadeOut(300,function(){
|
||||
|
||||
$(".images").html("<%= escape_javascript(render(:collection => @images, :partial => "portfolio_images/portfolio_image", :as => :image)) %>");
|
||||
|
||||
size_image_blocks();
|
||||
$(".images").fadeIn(300, function(){
|
||||
$("html, body").animate({ scrollTop: 0 }, 1);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user