X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   4.5.5 Flyout Menu Icon Sizing Trouble (https://forum.x-cart.com/showthread.php?t=66860)

mcanitano 05-16-2013 06:47 AM

4.5.5 Flyout Menu Icon Sizing Trouble
 
We recently upgraded to X-Cart Version 4.5.5 (from 4.5.1) and we ran into a problem with the Flyout Menus that we can't seem to fix. We use "flyout expanding" style.

Our icon sizing for the flyout menu icons is max-width to be 32px, and the height to be auto so it's proportional to the image.

Everytime the images are cached into the /images/C.cache.catthumbn folder, the images are resized to 16px width, then the Flyout Menu uses the cached images of 16px and since we have our icons to be 32px, it doubles them in size, making them blurry.

In order to fix this, we still have our backed up images from 4.5.1 that we replace the 16px images, but this is a temporary fix.

We can't seem to find where the images are being cached to a size of 16px. Any suggestions? We have checked the main.css for the site, and the Flyout Menu's main.css files, cannot seem to find it anywhere.

PhilJ 05-19-2013 02:25 AM

Re: 4.5.5 Flyout Menu Icon Sizing Trouble
 
I was looking for the same... After going on a wild goose chase...

include/func/func.image.php

Quote:

if (isset($icon_sizes[$skin_name])) {
$result = $icon_sizes[$skin_name];
} else {
$result = array('width' => '16', 'height' => '16'); //Default value for 3rd party skins.
}

(You'll need to regenerate the image cache after adjusting dimensions)

mcanitano 05-21-2013 07:29 AM

Re: 4.5.5 Flyout Menu Icon Sizing Trouble
 
Quote:

Originally Posted by PhilJ
I was looking for the same... After going on a wild goose chase...

include/func/func.image.php



(You'll need to regenerate the image cache after adjusting dimensions)


Thanks for this!

Though I guess since we use the 3-Column scheme, the code was directly above the code you supplied.

Quick fix!

PhilJ 05-21-2013 07:52 AM

Re: 4.5.5 Flyout Menu Icon Sizing Trouble
 
Yup


All times are GMT -8. The time now is 02:40 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.