- Posts: 4
- Thank you received: 0
Re: How to stop megamenu from expanding past template
-
Braindrained
Inactive member - Topic Author
- New Member
Less
More
13 years 9 months ago - 2 years 7 months ago #6499
by Braindrained
How to stop megamenu from expanding past template was created by Braindrained
I have a large menu and mega menu the drop down is flowing off the screen and past the template right margin.
How do I prevent the dropdown right over flow and switch direction on overflow.
charmsb. charm .com
Thank you.
How do I prevent the dropdown right over flow and switch direction on overflow.
charmsb. charm .com
Thank you.
Last edit: 2 years 7 months ago by milos.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 9 months ago - 2 years 7 months ago #6507
by ivan.milic
Replied by ivan.milic on topic Re: How to stop megamenu from expanding past template
Mayne mm version that you use in not latest?Latest js is in attachment.
Last edit: 2 years 7 months ago by milos.
Please Log in to join the conversation.
-
Braindrained
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 9 months ago #6511
by Braindrained
Replied by Braindrained on topic Re: How to stop megamenu from expanding past template
Ivan that is definately better.
The menu now does not widen the window which is good.
Is there a way to keep the menu inside the 997 pixel template width?
Thank you
The menu now does not widen the window which is good.
Is there a way to keep the menu inside the 997 pixel template width?
Thank you
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 9 months ago #6535
by ivan.milic
Replied by ivan.milic on topic Re: How to stop megamenu from expanding past template
Can you describe that more precise?
Please Log in to join the conversation.
-
Braindrained
Inactive member - Topic Author
- New Member
Less
More
- Posts: 4
- Thank you received: 0
13 years 9 months ago - 13 years 9 months ago #6545
by Braindrained
Replied by Braindrained on topic Re: How to stop megamenu from expanding past template
If the template site is 997 but your screen is 1280 the menu will extend past 997.
Last edit: 13 years 9 months ago by Braindrained.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
13 years 9 months ago #6577
by ivan.milic
Replied by ivan.milic on topic Re: How to stop megamenu from expanding past template
Hi,
well it works like that, like menu in desktop application. If you would like to change that it would require custom change in m.m. source script. If you will do it yourself here is part of source you should change:
.
.
.
onBarItem_Enter: function(eArgs) {
.
.
.
var offView = (jQuery(window).width() - Sender.offset().left) - eArgs.data.Self._AnimatedItem.innerWidth();
if( offView < 0)
{
eArgs.data.Self._AnimatedItem.css('left',(Sender.position().left + offView + eArgs.data.Self.MarginFixHorisontal ) + 'px');
}
else
{
eArgs.data.Self._AnimatedItem.css('left',(Sender.position().left + eArgs.data.Self.MarginFixHorisontal ) + 'px');
}
if (options.fade && options.slide) {
jQuery(Panels[0]).animate({ opacity: 'toggle', height: 'toggle' }, options.animation_speed);
}
.
.
.
well it works like that, like menu in desktop application. If you would like to change that it would require custom change in m.m. source script. If you will do it yourself here is part of source you should change:
.
.
.
onBarItem_Enter: function(eArgs) {
.
.
.
var offView = (jQuery(window).width() - Sender.offset().left) - eArgs.data.Self._AnimatedItem.innerWidth();
if( offView < 0)
{
eArgs.data.Self._AnimatedItem.css('left',(Sender.position().left + offView + eArgs.data.Self.MarginFixHorisontal ) + 'px');
}
else
{
eArgs.data.Self._AnimatedItem.css('left',(Sender.position().left + eArgs.data.Self.MarginFixHorisontal ) + 'px');
}
if (options.fade && options.slide) {
jQuery(Panels[0]).animate({ opacity: 'toggle', height: 'toggle' }, options.animation_speed);
}
.
.
.
Please Log in to join the conversation.
Time to create page: 0.175 seconds