Opened 16 years ago

Closed 16 years ago

#389 closed defect (fixed)

Menu2 in wrong position inside TabSet

Reported by: [email protected] Owned by: anonymous
Priority: high Milestone:
Component: Widgets Version: 0.2
Keywords: Cc:
Blocked By: Blocking:


When using Menu2 inside a TabPane?, the menu appears in the wrong position.

          <title>A Test Page</title>
          <script type="text/javascript">
              var djConfig = {
                  isDebug: false
          <script type="text/javascript" src="dojo/dojo.js"></script>
          <script language="JavaScript" type="text/javascript">
          <h1>Some Text</h1>
          <div id="mainTabPane" dojoType="TabPane" style="width:
100%; height: 50em;" selectedTab="frontPage">
              <div id="frontPage" dojoType="ContentPane" label="Test Tab">
                  <div dojoType="PopupMenu2" targetNodeIds="test">
                      <div dojoType="MenuItem2" caption="MENU 1"></div>
                  <div id="test" style="background-color:
silver">Right Click Here</div>

Change History (3)

comment:1 Changed 16 years ago by bill

Yup. The current only handles the case where the menu is a child of <body>. (As a workaround you can put the menu as a child of <body>.)

comment:2 Changed 16 years ago by anonymous

i have a test case for this in tests/widgets/test_Menu2_Position.html

positioning is broken for menus placed inside relatively or absolutely positioned elements too.

the fix will probably be to move the popup menu node to be a child of the body

comment:3 Changed 16 years ago by cal

Resolution: fixed
Status: newclosed

fixed in r3699

Note: See TracTickets for help on using tickets.