isc.Window with autoSize and maxHeight

Hi,

I have a window which has a dynamic number of elements. I have the autosize property set to true and the form works well when all of the items fit on the screen. When there are too many items to fit in the screen I want to limit the size and provide a scrollbar on the window.

My window creation code looks like this:

isc.Window.create({
ID: “DocumentPreviewWindow”,
title: “Preview”,
autoCenter: true,
autoSize: true,
maxWidth:800,
maxHeight:800,
showMinimizeButton:false,
isModal: true,
overflow:“scroll”,
autoDraw: false,
items:previewFormMembers
});

It appears that SC does not recognize the maxHeight property, rather it displays as much of the window as it can vertically and then clips the overflow and does not provide scrollbars.

I’m sure I’m probably just missing something but for the life of me can’t figure it out.

Thanks for your help!

Marc

Figured it out…

Turns out I had a mistake in another part of my code… this is working as it should.

Marc