Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    issue with modal window and menu items

    noticed in our app that selecting a menu item from inside a component that is inside a modal window causes the modal window to become no longer modal. happens in firefox 2.0.0.7, doesnt happen in IE 6. havent tried it in ie 7 or other versions of firefox. tried it against smartclient 5.6 and 5.7, it happened for both.

    below, is the trimmed down version of a page i used to cause it. if the context menu is on the window itself, the problem doesnt happen. if the context menu is on a listgrid in the window, it happens.
    Code:
    	isc.Window.create({
    		ID: "brokenWindow",
    		autoCenter: true,
    		isModal: true,
    		width: 400, 
    		height: 300,
    		items: [
    			isc.ListGrid.create({
    				ID: "listGrid",
    				width: 300, 
    				height: 200,
    				contextMenu: isc.Menu.create({
    				    data: [
    				        {title:"Broken Menu Item"}
    				    ]
    				}),
    				fields: [
    					{name: "Id"},
    					{name: "Name"}
    				]
    			})
    		]
    	});	
    	isc.Window.create({
    		ID: "notBrokenWindow",
    		autoCenter: true,
    		isModal: true,
    		width: 400, 
    		height: 300,
    		contextMenu: isc.Menu.create({
    		    data: [
    		        {title:"Not Broken Menu Item"}
    		    ]
    		})
    	});
    	
    	isc.HLayout.create({
    		autoDraw: true,
    		members: [
    			isc.Button.create({
    				title: "Not Broken",
    				click: function() {
    					notBrokenWindow.show();
    				}
    			}),
    			isc.Button.create({
    				title: "Broken",
    				click: function() {
    					brokenWindow.show();
    				}
    			})
    		]
    	});

    #2
    Hi Jesse
    Thanks for bringing this to our attention. This is indeed a bug in SmartClient.

    Our engineers have now fixed the code internally, and the fix will be available shortly in an updated build (5.71).

    Isomorphic Software

    Comment

    Working...
    X