Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#10568 closed bug (notabug)

ui.menu postion is not working

Reported by: zishanj Owned by: zishanj
Priority: minor Milestone: none
Component: ui.menu Version: 1.10.4
Keywords: Cc:
Blocked by: Blocking:

Description

I am using jQuery UI 1.10.4 in WordPress 3.9.1. On the left sidebar I am using ui.menu inside the ui.accordion widget. The problem is the submenus are not positioning well instead they are overlapping each other. I have tried using the position option but this options seems doesn't work and is not affecting the menu position. Here is the working URL http://tinyurl.com/olzb3o5

Change History (4)

comment:1 Changed 6 years ago by Scott González

Owner: set to zishanj
Status: newpending

There are way too many things included in that page. Please provide a reduced test case since this is working fine in a standalone demo. Also, note that { my: "center", at: "center" } will create pretty bad usability as you'll be covering the parent menu.

comment:2 Changed 6 years ago by zishanj

Status: pendingnew

Actually I am developing a plugin for WordPress which uses ui.accordion and ui.menu on left sidebar. I am initializing the menu with $('#my-menu').menu() without any options. But can't figure out why its not positioning the submenus properly and I am unable to position it in options.

comment:3 Changed 6 years ago by Scott González

Resolution: notabug
Status: newclosed

Well, something is setting the position option, but I'm not going to dig through all the scripts to try debugging this. It sounds like there's something going on in that site that is changing behavior that you're not aware of, so I'm going to close this for now. If you can provide a reduced test case that shows a problem, we'll reopen the ticket.

comment:4 Changed 6 years ago by zishanj

Just to an update. After visiting the Download page of jQuery UI site again, I came to know that ui.position is a required dependency for Menu to adjust its position. I have now loaded that utility also and everything works like a charm now. Thanks for your time though. :)

Note: See TracTickets for help on using tickets.