@plengyel
Afternoon,
did some more tests with the sbox function to get a better display in responsive view.
To get a better display below a screen width of 979 pixels I did modify the modal.js and did add just one rule to the frontend.css
Not sure if this is a save solution with regard to a joomla update or some other functions that could be not working as expected but the result is looking fine.
Depending on the script file loaded you should change media/system/js/modal.js (compressed version) or media/system/js/modal-uncompressed.js or both if you do not know what is loaded.
Just change the: if (box.x > 979) line to: if (box.x > 319) in my system it's on line 244 and 447 of the uncompressed modal.js
and add the following to the frontend.css file of Hikashop:
/* set the sbox height for small screens */
@media all and (max-width: 479px){
.sbox-content-image img, #sbox-window {
min-height: 150px !important;
}
}
All the previous CSS changes I made are disabled for the moment and replaced with the one above.
The checkout pop-up is now centered on all screen sizes from 320px upwards, the image pop-up is also correct in portrait and landscape view and you have the sbox-overlay back again.
Below 320px the pop-up still needs correction, will test that with the old CSS corrections, but I am not sure what kind of mobile view is the lowest used on most phones.
Please note that I do not have any js or css skills and my changes could break your setup, so keep backups at hand.
Regards, Rene