Hello Mike,
i came back again to the problem and checked the css and have tested a lot of css changes, and searched a number of possible rendering changes in Chrome 22 and Firefox 16.
(For example:
http://chrisvalleskey.com/chrome-22-breaks-everything/)
To quickly summarize:
none of my changes solved the problem.
The DropDownCart module on the site
http://www.zoldlotusz.hu worked perfectly on all browsers until ca. October 2012.
Now its working perfect in the actual Opera, Safari and IE9.
Problem:
And the buttons are not functioning properly in Chrome 22 and Firefox 16-17.
There were no changes made on the site or in the server side PHP. Joomla caches are cleared, and the browser caches also.
There are 2 more sites found with the same problem: the module is working here also no more properly (with 3 different templates!).
See:
http://www.dmoonszappan.hu (J1.5.26 too)
http://gandalf.intrex.hu/raabcomputer/ (J1.5.15)
Here on this last test site i opened a new, bigger position for the module, right under the main content, and changed the width to 400px and the height to 190px in the module settings.
As you can see, the behaviour is not changed. (I have attached a pic about it too.)
What i can see with FireBug, is that when the cart is containing at least one item, the buttons are not rendered properly.
This is the 'Expand' button, rendered with "display:none;" which is false:
<div style="display:none;float:left;padding:1px;padding-right:21px;background:url(
http://www.zoldlotusz.hu/modules/mod_virtuemart_s5_dropdown_cart/s5_dropdown/arrow.png) no-repeat center right;font-size:12px" id="s5_open_dd"> Nyit </div>
When i'm adding to my css directly:
#s5_open_dd { display: block!important; },
than the button will be rendered in his right place(!), close to the Cart button. Thus our problem is not, that it is not displayed in a faulty position; it's not displayed at all!
When this hacked button is clicked:
- in Chrome the dropdown opens and closes immediately; the Button 'Close' is not displayed;
- in Firefox the dropdown is not opening at all
(functioning faulty also).
So this is not a solution.
I can't find a template error until now.
I think, the displaying of the buttons and the dropdown is controlled in the module code.
See in the mod_virtuemart_s5_dropdown_cart.php:
function s5_getdropheight() {
if (document.getElementById("vmCartModule2")) {
if (s5_closing == "0" && s5_opening == "0") {
var drop_down_height2 = document.getElementById("vmCartModule2").offsetHeight;
document.getElementById("s5_dropdowncart").style.height = drop_down_height2 + 'px';
if (document.getElementById("s5_open_dd")) {
if (document.getElementById("s5_dropdowncart").offsetHeight > "15") {
document.getElementById("s5_open_dd").style.display = 'none';
document.getElementById("s5_closed_dd").style.display = 'block';
}
else {
document.getElementById("s5_closed_dd").style.display = 'none';
document.getElementById("s5_open_dd").style.display = 'block';
}
}
}
}
}
What do you think?
Greetings and thank you for your attention,
Andras
PS:
I have searched the s5 forum and found at least some topics in the result list, that possibly can contain a solution of the problem:
http://www.shape5.com/component/option,com_smf/Itemid,75/topic,10483.0/http://www.shape5.com/component/option,com_smf/Itemid,75/topic,25025.0/http://www.shape5.com/component/option,com_smf/Itemid,75/topic,11901.0/http://www.shape5.com/component/option,com_smf/Itemid,75/topic,8970.0/http://www.shape5.com/component/option,com_smf/Itemid,75/topic,23743.0/Maybe i can find some help for my problem in this threads. But i have no rights to read them.
How can we solve the problem?