Announcement

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

    Windows are not displayed with isModal:false

    Hi,
    We are working with tabsets and windows, and in our initial response there is something like the code below.
    If the window is not modal, the window is places behind the tabset and is not visible. A window should be always visible, not only if its modal. This issue is a big blocker for us. It would be nice to get a solution to this as soon as possible.

    We are working with SmartClient_v100p_2014-10-28_Pro and the issue exists in all browsers.

    here is the code:
    Code:
    isc.Window.create({
    	"width" : "200",
    	"height" : "200",
    	"autoDraw" : true,
    	"title" : "theWindow",
    	"autoSize" : true,
    	"autoCenter" : true,
    	"isModal" : false,
    	"items" : [isc.HTMLPane.create({
    			"contents" : "The text in window and not visible with isModal:false ",
    			"width" : "200",
    			"height" : "200"
    		})]
    })
    isc.TabSet.create({
    	"width" : "100%",
    	"height" : "100%",
    	"autoDraw" : true,
    	"tabs" : [{
    			"title" : "TheTest",
    			pane : isc.HTMLPane.create({
    				"contents" : "Here is a content",
    			})
    		}
    	]
    });

    #2
    This sounds like a z-index issue. Simply call 'bringToFront()' on the window to bring it to the front of the page's z order.

    Comment


      #3
      I haven't ran the code but this seems to be working as intended.

      You have autoDraw:true for both items but the TabSet is being created after the Window so the TabSet's Pane will most likely have the highest z-index.

      If you REALLY want to test this, you should add a Button or something to the Tabset's pane that can toggle the window on/off and see if you get the same result. If you do, then that would be a bug, imo.

      *EDIT*
      Just ran this code and if you create the TabSet first, the window shows up fine.

      Just my 2 cents.... but the first thing I do in all my SmartClient apps is turn autoDraw off by default.
      Just find the entry point to your app and call:
      Code:
      isc.setAutoDraw(false);
      Last edited by amcculley; 28 Oct 2014, 17:20.

      Comment

      Working...
      X