make fancybox title width wider than image?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
User avatar
deschnell
Forum Members
Forum Members
Posts: 48
Joined: Fri Jun 27, 2008 5:27 am
Location: Lethbridge

make fancybox title width wider than image?

Post by deschnell »

Is it possible to modify the .js or something somewhere to make the fancybox outer/wrap or the title to be wider than the image?
I've got some images in the CG Products module, and some are either small or tall/skinny.

I tried hunting through the .js for a few different parts of fancybox, (jquery.fancybox-1.3.1.pack.js) and found an area

Code: Select all

d.width=Math.round(o*(d.width-r))
which I attempted to double (o*2*(d.width...) but that doubled the width of the image. I know I'm close, just wondering if there's a cleaner or better way to do this?

(It's not directly controlled by CSS, as the div has the style defined within it's element, and is different for every image).
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm
Location: Fernie British Columbia, Canada

Re: make fancybox title width wider than image?

Post by calguy1000 »

This is not an issue related directly to CMSMS or even to the products module... it's related to the javascript library you are using. You should ask there.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
User avatar
deschnell
Forum Members
Forum Members
Posts: 48
Joined: Fri Jun 27, 2008 5:27 am
Location: Lethbridge

Re: make fancybox title width wider than image?

Post by deschnell »

I know it's not a core issue, but it is related to the jquery module, which is why I'm asking here. I could go and create a new account on some js forum to ask a single question, but thought there are enough smart and experienced people who know jquery and fancy more than me, so I asked here. If it bugs you Robert, why take the time to answer? How do you know I didn't already ask somewhere else, just trying to get a variety of answers to better learn? Another reason for posting here is for future people looking for the same or similar answer.
Thanks anyway. I love your modules and additions to the project.
lewishowles
Forum Members
Forum Members
Posts: 52
Joined: Tue Oct 25, 2011 4:45 pm
Location: Lancashire, UK

Re: make fancybox title width wider than image?

Post by lewishowles »

This is much harder if you're working on the minified version. I would suggest downloading a copy of the development version, making changes until it works and then minifying it again yourself.

The writer of this post has made a start but theirs isn't working and I've not really looked over it thoroughly but might give you some pointers. http://groups.google.com/group/fancybox ... a0e62619e4

You'd also have to set it as a minimum width, rather than say doubling the default width, because a normal sized image would then have a box that could go off screen.
Locked

Return to “Modules/Add-Ons”