Welcome, Guest
Username: Password: Remember me
Use this Category for your support questions about Virtuemart Template - CleanMart (SKU# FLEX-00015)

TOPIC: FancyBox size - add product to cart

FancyBox size - add product to cart 8 years 3 months ago #13602

Hi,
the fancybox that appears when you add a product to the cart shows an annoying scollbar at the bottom because the size of the container (div fancybox-container) is sized automatically and is too small.

Attachment ModalPopUp.jpg not found



Have you got an idea how to fix it?

PS: setting scrolling: "no" in flexibleMartGlobal.php does not work

Thanks,
Bruno
Last Edit: 8 years 3 months ago by Bruno Ortolani.
The topic has been locked.

FancyBox size - add product to cart 8 years 3 months ago #13605

Just for your info I solved it by changing fancybox default padding to 0 in jquery.fancybox-1.3.4.pack.js, but it is a solution I don't like at all!

Bruno
The topic has been locked.

FancyBox size - add product to cart 8 years 3 months ago #13609

hi,

that problem actually caused by the "box-sizing" CSS rule. If you are using a bootstrap based joomla template, then all the elements are getting box-sizing:border-box; rule, but the "notification box" must be set to box-sizing:content-box;

If you provide me your website URL, i can better assist you on this, because the solution is varying from website to website.

regards.
The topic has been locked.

FancyBox size - add product to cart 8 years 3 months ago #13621

Great, you are right.
Solved!

I added the following to jquery.fancybox-1.3.4.css:
#fancybox-content div { box-sizing:content-box; }
#fancybox-wrap div { box-sizing:content-box; }
#fancybox-wrap { box-sizing:content-box; }

and this to flexible.css:
#flexibleNotification{margin:0; box-sizing:content-box;}

Thanks, Bruno
The topic has been locked.

FancyBox size - add product to cart 8 years 3 months ago #13624

sometimes adding those CSS rules itself is not enough, because templates re-override it with !important rule or with a stronger CSS selectors. But looks like yours doesn't do it.

I am glad you solved your problem by yourself ;)

case solved, topic locked.

Cheers,
Support
Last Edit: 8 years 3 months ago by Support.
The topic has been locked.
Time to create page: 0.122 seconds

MaterialMart

for Virtuemart 3

Google's Material Design has finally arrived to Virtuemart

Virtumart Template - MaterialMart Virtumart Template - CleanMart Virtumart Template - CleanMart Virtumart Template - CleanMart

Fully responsive!

Buy Now   |   Live Demo