Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

4.5.5 Flyout Menu Icon Sizing Trouble

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-16-2013, 06:47 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default 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.
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote

The following user thanks mcanitano for this useful post:
anfrol (01-03-2014)
  #2  
Old 05-19-2013, 02:25 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default 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)
__________________
xcartmods.co.uk
Reply With Quote

The following 2 users thank PhilJ for this useful post:
anfrol (01-03-2014), mcanitano (05-21-2013)
  #3  
Old 05-21-2013, 07:29 AM
  mcanitano's Avatar 
mcanitano mcanitano is offline
 

eXpert
  
Join Date: Feb 2006
Location: Melbourne, FL
Posts: 216
 

Default 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!
__________________
Marcello Canitano
New Site: X-Cart v4.5.5 GOLD
X-Cart Mobile v1.4.3
X-Payments v1.0.6
CDSEO Pro v2
Total Server Solutions xCDN

www.silverhorseracing.com
Reply With Quote
  #4  
Old 05-21-2013, 07:52 AM
 
PhilJ PhilJ is offline
 

X-Guru
  
Join Date: Nov 2002
Posts: 4,094
 

Default Re: 4.5.5 Flyout Menu Icon Sizing Trouble

Yup
__________________
xcartmods.co.uk
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:15 PM.

   

 
X-Cart forums © 2001-2020