End of Support for Joomla 3 - Forum closed
Issue with submenu
Hi there,
I activated the Medical theme that I've personalized, but I have an issue/bug with my submenu. When you make the screen smaller (or you expand the size of your view for example to 150% Control + ) and you hover the menu, the submenu appears. That's ok.
However when the submenu is larger ( a long list of 10 submenu-items let's say) than the visible webpage, it jumps 'till the end of the page. So you have like this jump to the end of the page which is really weird. It seems there a script (maybe javascript? in UIkit) that has an if-condition that makes the submenu-div to show 'till the end.
Any ideas?
It seems it's a 'boundary'-thing, but how to I deactivate it correctly?
Thanks for feedback!
DLM
I activated the Medical theme that I've personalized, but I have an issue/bug with my submenu. When you make the screen smaller (or you expand the size of your view for example to 150% Control + ) and you hover the menu, the submenu appears. That's ok.
However when the submenu is larger ( a long list of 10 submenu-items let's say) than the visible webpage, it jumps 'till the end of the page. So you have like this jump to the end of the page which is really weird. It seems there a script (maybe javascript? in UIkit) that has an if-condition that makes the submenu-div to show 'till the end.
Any ideas?
It seems it's a 'boundary'-thing, but how to I deactivate it correctly?
Thanks for feedback!
DLM
Last Edit:7 years 8 months ago
by ASSURALIA
Last edit: 7 years 8 months ago by ASSURALIA.
Please Log in or Create an account to join the conversation.
- joomlaplates
-
Offline
- Moderator
-
- Posts: 8841
- Thank you received: 1736
Hi there,
do you have a live url where I can see the issue?
do you have a live url where I can see the issue?
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
www.cabinetmedilink.be/fr/
Try the fourth menu-item (autres therapeutes)
i'm quite sure it has something to do with the "boundaries" from the UIkit, like in warp/vendor/uikit/js/uikit.js.
maybe with this?
checkBoundary: function(i, e, n, o, s) {
var a = "";
return (i < 0 || i - t.$win.scrollLeft() + n > s) && (a += "x"), (e - t.$win.scrollTop() < 0 || e - t.$win.scrollTop() + o > window.innerHeight) && (a += "y"), a
}
or do I need to use somethinkg like uk-dropdown="boundary: .boundary"
Try the fourth menu-item (autres therapeutes)
i'm quite sure it has something to do with the "boundaries" from the UIkit, like in warp/vendor/uikit/js/uikit.js.
maybe with this?
checkBoundary: function(i, e, n, o, s) {
var a = "";
return (i < 0 || i - t.$win.scrollLeft() + n > s) && (a += "x"), (e - t.$win.scrollTop() < 0 || e - t.$win.scrollTop() + o > window.innerHeight) && (a += "y"), a
}
or do I need to use somethinkg like uk-dropdown="boundary: .boundary"
Last Edit:7 years 8 months ago
by ASSURALIA
Last edit: 7 years 8 months ago by ASSURALIA.
Please Log in or Create an account to join the conversation.
- joomlaplates
-
Offline
- Moderator
-
- Posts: 8841
- Thank you received: 1736
Hi there,
sorry I cant see any issue.
I have set the Brwoser to 150% and try the submenu, see video.
Maybe you can fix it, if you setup a third level menu. Therefore add this css code to your css/custom.css
sorry I cant see any issue.
I have set the Brwoser to 150% and try the submenu, see video.
Maybe you can fix it, if you setup a third level menu. Therefore add this css code to your css/custom.css
Code:
.uk-nav-navbar > .uk-parent > .uk-nav-sub { display: none; }
.uk-nav-navbar > .uk-parent > a:after {
content: "\f107";
font-family: "FontAwesome";
display: block;
float: right;
}
.uk-nav-navbar > .uk-parent:hover > .uk-nav-sub {
display: block;
background: none repeat scroll 0 0 padding-box #fff;
border: 1px solid rgba(0, 0, 0, 0.12);
box-shadow: 0 6px 8px rgba(0, 0, 0, 0.3);
width: 200px;
margin-top: -5px;
padding: 15px;
position: absolute;
left: 150px;
}
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
Hi,
I guess I wasn't quite clear in my explanation.
It appears when the menu is longer than the screen, so not in the way you showed in the video.
SO that the last subitem (here its Vanessa...) is outside of the screen/not visible
It's like when you open your 'inspect' in Chrome, then your screen is smaller, you see?
I guess I wasn't quite clear in my explanation.
It appears when the menu is longer than the screen, so not in the way you showed in the video.
SO that the last subitem (here its Vanessa...) is outside of the screen/not visible
It's like when you open your 'inspect' in Chrome, then your screen is smaller, you see?
by ASSURALIA
Please Log in or Create an account to join the conversation.
- joomlaplates
-
Offline
- Moderator
-
- Posts: 8841
- Thank you received: 1736
I cant see any issue:
Btw where should the menu item go? You have to scroll down to see all menu items when the screen is not height enough!
Btw where should the menu item go? You have to scroll down to see all menu items when the screen is not height enough!
Dokumentation:
www.joomlaplates.de/dokumentation.html
www.joomlaplates.de/dokumentation.html
by joomlaplates
Please Log in or Create an account to join the conversation.
Moderators: joomlaplates