![]() |
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? |
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
|
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 |
Re: sub cat div height?
weird way to do this, isn't it? Why are layout elements being assigned in PHP?
|
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
|
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.