Forums

NextGEN Gallery
Galleryview will not center in page (3 posts)

  1. sourcecipher
    Member
    Posted 10 months ago #

    I needed to get rid of the native ability of the galleryview plugin to resize images to fit in the panel. It was making them larger than they were and cutting off the border I had given the images.

    This all went fine, but after I had done it the gallery was no longer centered.

    // If panel images have to be scaled to fit within frame, do so and position them accordingly
    			if(scale_panel_images) {
    				$('img',j_panels).each(function(i){
    					$(this).css({
    			//			'height':panel_img_scale[i%item_count]*img_h[i%item_count],
    			//			'width':panel_img_scale[i%item_count]*img_w[i%item_count],
    						'position':'relative',
    						'top':(opts.panel_height-(panel_img_scale[i%item_count]*img_h[i%item_count]))/2+'px',
    						'left':(opts.panel_width-(panel_img_scale[i%item_count]*img_w[i%item_count]))/2+'px'
    					});
    				});
    			}

    This is the code I messed with. All I did was comment out the width and hight code. Now I cannot get the darn thing to center no matter what I do here, in the css of the plugin, or in site theme css. I tried putting the code back the way it was, and it still would not center. Help!

    http://wordpress.org/extend/plugins/nextgen-gallery/

  2. tigron
    Member
    Posted 9 months ago #

    Did you figure this out ?

  3. sourcecipher
    Member
    Posted 9 months ago #

    I have not figured it out yet. If you have any ideas, I'm open to them.

Reply

You must log in to post.

About this Plugin

About this Topic