Hi,
How can I add a boundary to the dragHandle to prevent the window from being 
dragged out of the browser?

jQuery('#window').Resizable(
    {
        minWidth: 245,
        minHeight:220,
        maxWidth: 700,
        maxHeight: 400,
        dragHandle: '#windowTop',
        handlers: {
            se: '#windowResize'
        },
        onResize : function(size, position) {
            jQuery('#windowBottom, #windowBottomContent').css('height', 
size.height-33 + 'px');
            var windowContentEl = jQuery('#windowContent').css('width', 
size.width - 25 + 'px');
            if (!document.getElementById('window').isMinimized) {
                windowContentEl.css('height', size.height - 48 + 'px');
            }
        }
    }
).hide();

_________________________________________________________________
Show them the way! Add maps and directions to your party invites. 
http://www.microsoft.com/windows/windowslive/events.aspx

Reply via email to