Opened 13 years ago

Closed 13 years ago

Last modified 12 years ago

#537 closed defect (fixed)

Menu2 not always working in IE

Reported by: tildahl Owned by: alex
Priority: high Milestone:
Component: Widgets Version: 0.2
Keywords: Cc:
Blocked By: Blocking:

Description

Creating a PopupMenu2 by using dojo.widget.createWidget() works fine in FF, but in IE it creates the widget but doesn't display anything. If the widget is created by markup it works in both FF and IE.

If you change the test case test_Menu2_Node.html so that the first PopupMenu2 created from markup is commented out and replace it with:

<script> var menu = dojo.widget.createWidget("PopupMenu2", {targetNodeIds: test1?}); menu.addChild(dojo.widget.createWidget("MenuItem2", {caption: "MENU 1"})); menu.addChild(dojo.widget.createWidget("MenuItem2", {caption: "MENU1-Item 1"})); menu.addChild(dojo.widget.createWidget("MenuItem2", {caption: "MENU1-Item 2"})); </script>

you can see the IE problem.

Attachments (2)

test_Menu2_Node2.html (2.3 KB) - added by tildahl 13 years ago.
Test case
test_Menu2_Node2.2.html (1.7 KB) - added by bill 13 years ago.

Download all attachments as: .zip

Change History (13)

Changed 13 years ago by tildahl

Attachment: test_Menu2_Node2.html added

Test case

comment:1 Changed 13 years ago by bill

Thanks for the test case. I'm sure this is a race condition dealing with sizing (where the size is computed in javascript), and I'd like someone (hopefully a volunteer other than me :-) ) to avoid the whole issue by converting menu2 to use a table (if possible), and leave the whole sizing thing to the browser.

comment:2 Changed 13 years ago by tildahl

Owner: changed from anonymous to alex

comment:3 Changed 13 years ago by tildahl

Resolution: invalid
Status: newclosed

comment:4 Changed 13 years ago by anonymous

Resolution: invalid
Status: closedreopened

Hello

I think this problem still exists. Could you please clarify?

Thanks.

comment:5 Changed 13 years ago by bill

About a month before the 0.3 release there was some code checked in to download CSS files synchronously, rather than asynchronously like before, and that code should make the race condition go away. Are you still seeing an issue? (Also, please enter your e-mail or username when writing comments in the bug database.)

comment:6 Changed 13 years ago by bluerpk@…

Hello

Sorry for the anonymous post. I am trying to create menus using javasript code. It works perfectly in Firefox. But in IE it does not work. I am using version 0.3 and have tried everything newer than this. I don't know if I can go back to an older version as I have already migrated my code once from version 0.2 to 0.3 and I don't want to go through the trouble again. Any help appreciated.

Thanks a lot

comment:7 Changed 13 years ago by bill

Milestone: 0.3release0.3.1

OK, I can reproduce the problem on the latest SVN code by loading the above testcase (test_Menu2_Node2.html). I'm going to update that test a little bit.

Changed 13 years ago by bill

Attachment: test_Menu2_Node2.2.html added

comment:8 Changed 13 years ago by bill

Resolution: fixed
Status: reopenedclosed

Fixed in [4212]

comment:9 Changed 13 years ago by bill

Summary: Menu2 not always working in IEMenu2 programmatic creation broken in IE

comment:10 Changed 13 years ago by bluerpk@…

Milestone: 0.3.10.3release
Summary: Menu2 programmatic creation broken in IEMenu2 not always working in IE

Thank you for the quick solution. It works well.

Thanks.

comment:11 Changed 12 years ago by (none)

Milestone: 0.3release

Milestone 0.3release deleted

Note: See TracTickets for help on using tickets.