michael_s Posted May 20, 2011 Share Posted May 20, 2011 Hello, When using Chrome or Safari browsers, the ajaxcart in whmcs v4.5.1 does not scroll with the page, and disappears. See the video: http://screencast.com/t/7vDsCCMPvtZn Seems to work fine in FF, IE. Does anyone else see this behavior? 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted May 21, 2011 Share Posted May 21, 2011 Yes, confirmed. I use Chrome and the shopping cart stays at the top at all times. 0 Quote Link to comment Share on other sites More sharing options...
jpkelly Posted May 21, 2011 Share Posted May 21, 2011 Same here... Well actually it vanishes when it gets to the top. 0 Quote Link to comment Share on other sites More sharing options...
bradh Posted May 21, 2011 Share Posted May 21, 2011 Glad I'm not the only one 0 Quote Link to comment Share on other sites More sharing options...
Juanzo Posted May 21, 2011 Share Posted May 21, 2011 I'm not sure if it's of any use since we use a custom template, but you can check our ajax order form working at both browsers. 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted May 21, 2011 Share Posted May 21, 2011 Juanzo, confirmed as well... though the "default" Ajax Cart template does not behave that way at all. 0 Quote Link to comment Share on other sites More sharing options...
webjive Posted May 21, 2011 Share Posted May 21, 2011 I can confirm this happens with every new release for some reason. I have had to fix the JS every time, and every time I have to backtrack and figure out what's broken for WebKit. 0 Quote Link to comment Share on other sites More sharing options...
jpkelly Posted May 22, 2011 Share Posted May 22, 2011 I found that this function in main.js controls the properties of fixedFloatWrapper and changing absolute to inherit in two places fixed it for me. $(document).ready(function(){ recalcsummary(); (function ($) { $.fn.basketFloat = function () { $me = this; var position = this.position(); var yPos; $me.wrap('<div id="fixedFloatWrapper" style="position:inherit;left:' + position.left + 'px;" />'); $(window).scroll(function () { yPos = $(window).scrollTop(); if (yPos >= position.top) { $me.css('position', 'fixed').css('top', '5px'); } else { $me.removeAttr("style"); } }); $(window).resize(function () { $('#fixedFloatWrapper').css('position', 'static'); $me.removeAttr("style"); position = $me.position(); $('#fixedFloatWrapper').css({ 'position': 'inherit', 'left': position.left + 'px' }); if (yPos >= position.top) { $me.css('position', 'fixed').css('top', '0'); } else { $me.removeAttr("style"); } }); }; })(jQuery); jQuery('#cartsummary').basketFloat(); }); 0 Quote Link to comment Share on other sites More sharing options...
Sophia Posted May 23, 2011 Share Posted May 23, 2011 That sorted it for me too, THANKS for posting the solution, jpkelly! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.