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)
-   -   sub cat div height? (https://forum.x-cart.com/showthread.php?t=53022)

ARW VISIONS 03-26-2010 07:30 PM

sub cat div height?
 
<span class="subcategories" style="min-width: {$subcat_div_width}px; width: {$subcat_div_width}px; min-height: {$subcat_div_height}px;">

this code controls the height of the div containing the subcat thumb. where is this height calculated?

and why is it adding 44 px to the height of the div?

cflsystems 03-27-2010 05:45 AM

Re: sub cat div height?
 
I think it is assigned in one of the function php files, can't remember which one right now. Not sure why it is done this way

gb2world 03-27-2010 12:48 PM

Re: sub cat div height?
 
These are the files (in 4.2.x):
include/categories.php
include/func/func.category.php
which is also looking at hight/width data from the xcart_images_C table

ARW VISIONS 03-27-2010 07:34 PM

Re: sub cat div height?
 
weird way to do this, isn't it? Why are layout elements being assigned in PHP?

cflsystems 03-28-2010 06:26 AM

Re: sub cat div height?
 
The reason may be because of the calculations and smarty is not good for something like this. Still I think is not a good practice to do this

inkcarts 03-30-2010 01:27 PM

Re: sub cat div height?
 
Funny. This is exactly what is driving me nuts today.

Lyn


All times are GMT -8. The time now is 07:10 AM.

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