Solved

SimpleViewer Wordpress Plugin - Need to stop resizing window dynamically

Posted on 2011-02-25
5
506 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
 
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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…
The viewer will learn how to dynamically set the form action using jQuery.

617 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