Skip to main content

Search and Top Navigation

#10568 closed bug (notabug)

Opened August 26, 2014 10:37AM UTC

Closed August 26, 2014 12:37PM UTC

Last modified August 26, 2014 02:48PM UTC

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

Attachments (0)
Change History (4)

Changed August 26, 2014 11:54AM UTC by scottgonzalez comment:1

owner: → 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.

Changed August 26, 2014 12:31PM UTC by zishanj comment:2

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.

Changed August 26, 2014 12:37PM UTC by scottgonzalez comment:3

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.

Changed August 26, 2014 02:48PM UTC by zishanj comment:4

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. :)