When creating a window object, I am attempting to default the overflow attribute to "hidden".
However, the only way I can currently get this to work is to explicitly set it using: window_obj.setOverflow("hidden");
For a simple example of the behaviour, paste the below sample code into any sample showcase javascript window and click the "Try It" button:
	Click the "SHOW" button (might need to click it a few times to get modal to show) and the "overflow" will be shown as yellow background.
If you then use a browser debugger and run :
	... it will show as "visible"
If you then use the browser debugger and run :
	... then the overflow disappears.
If you add :
  
	... after the isc.window.create() call then it works.
Is there something I am misunderstanding about overflow?
					However, the only way I can currently get this to work is to explicitly set it using: window_obj.setOverflow("hidden");
For a simple example of the behaviour, paste the below sample code into any sample showcase javascript window and click the "Try It" button:
Code:
	
	 
isc.HLayout.create({
    width: 300,
    layoutMargin:5,
    membersMargin: 10,
    members: [
        isc.Button.create({
            title: "Show",
            width: 100,
            click : function () {
                if (this.fillScreenWindow == null) {
                    this.fillScreenWindow = isc.Window.create({ID: "my_window",
                              overflow: "hidden", layoutAlign: "left", autoDraw: false, showHeader: false,
                              canDragReposition: false, dismissOnOutsideClick: true, isModal: true, autoSize: true,
                              height: "80", backgroundColor: "yellow",
                              title: "My Window", showMinimizeButton: false, showStatusBar: false, showResizer: false,
                            items: [ isc.DynamicForm.create({
                                     ID: "my_form", numCols: 2, autoDraw: true, autoFetchData: false,
                                    fields: [ {name: "a_selector", title: "Choose Destination",
                                           addUnknownValues: true, type: "select", autoFetchData: true}
                                            , {name: "a_textfield1", title: "Ok", type: "button", align: "right"}
                                     ]}
                                   )]});
                     this.fillScreenWindow.moveTo(this.getPageLeft(), this.getPageBottom());
                } else {
                    this.fillScreenWindow.show();
                }
                this.fillScreenWindow.bringToFront();
            }
        }),
    ]
});
If you then use a browser debugger and run :
Code:
	
	my_window.getOverflow()
If you then use the browser debugger and run :
Code:
	
	my_window.setOverflow("hidden")
If you add :
Code:
	
	my_window.setOverflow("hidden");
Is there something I am misunderstanding about overflow?
Comment