Solved

SimpleViewer Wordpress Plugin - Need to stop resizing window dynamically

Posted on 2011-02-25
5
499 Views
Last Modified: 2012-05-11
Hello,
I need the images in simpleviewer to display at their full, original size.  Right now they get scaled down when the window is resized.  My client wants the images to display full size, even if that means the end user has to scroll.
I looked in the professional settings and didn't see anything that worked.  Fixed layout doesnt work, cropping doesnt work.
Here is the link so you can see what I am referring to:  http://www.phoenixdigitalweb.com/Concep … rk/people/
Thank you!!!!!
0
Comment
Question by:RiemenDesign
  • 3
  • 2
5 Comments
 
LVL 14

Expert Comment

by:R-Byter
ID: 34989299
Its not a problem of the Wordpress plugin itself but rather the options you need to set for fancybox jquery part. That being said, here is how you can do it. In your document.ready part:

$(document).ready(function() { 
...

Open in new window


Find this line:

$("a#example4").fancybox(); 

Open in new window


And replace it with this for example:

$("a#example4").fancybox({
    'autoDimensions': false,
    'padding'       : 0,
    'width'         : 820,
    'height'        : 520,
    'autoScale'     : false,
    'type'          : 'iframe'
});

Open in new window


You can of course set the paramaters as you want.

Regards
0
 

Author Comment

by:RiemenDesign
ID: 34992376
But I need the height to be auto, so it will adjust automatically.
0
 
LVL 14

Expert Comment

by:R-Byter
ID: 34993452
Put auto to height property.

'height'        : auto,

Open in new window


Im trying that with this page at your site:

http://www.phoenixdigitalweb.com/portfolio.php

You need to give me exact link with the problem since link in your question is not complete.

Regards
0
 

Author Comment

by:RiemenDesign
ID: 34993541
0
 
LVL 14

Accepted Solution

by:
R-Byter earned 500 total points
ID: 34993673
It seems that page isnt working properly, distorted display viewed in Firefox and Chrome.
I see that you're using prettyPhoto in your code.
To disable resize for prettyPhoto you need to replace this:

$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square'});
		});

Open in new window


with this:

$(document).ready(function(){
			$("a[rel^='prettyPhoto']").prettyPhoto({theme:'light_square', allow_resize: false});
		});

Open in new window


Regards
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now