jsymonkj / pwi

Automatically exported from code.google.com/p/pwi
0 stars 0 forks source link

Image list inside an album doesn't conform to a <div> box if there is only 1 page of photos. #57

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

I've just started using this library on my website this afternoon and in 
the midst of integrating it I've found a small bug.  My website confines 
all of the objects inside <div> tags but I've found that if there is only 
one page of images (ie less than maxResult:x) then the div doesn't work.  
The album list is fine, and the images are fine if there is greater than 
maxResult:x images.

The code is embedded using the examples copied in to the <head> tag of the 
site and the main bit of code is as follows:

....
<body>
<div id="imagebox">
 <div id="container"></div>
</div>
</body>
....

where id="imagebox" is as follows in the css file:-
#imagebox {
    position:relative;
    width:740px;
    left:50%;
    margin-top:20px;
    margin-left:-380px;
    padding:10px;
    background:#F1DCB1;
    text-align:center;
    }

Any ideas or is it something in the JS causing the problem??

Thanks!

Original issue reported on code.google.com by liveitne...@gmail.com on 1 Jun 2010 at 5:10

GoogleCodeExporter commented 9 years ago
add a float:right; to the div containing the gallery (in this case #imagebox) 
and I think it will fix it.

Seen on the discussion group. It's not specifically PWI.

Original comment by jdiderik on 12 Aug 2010 at 1:47