<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">function CommonDisplayLayoutClass() {
    this.windowWidth = 0;
    this.windowHeight = 0;
}

CommonDisplayLayoutClass.prototype.resizeAll = function(caller) {
    var that = this;
    that.windowWidth = $(window).width();
    that.windowHeight = $(window).height();

    if (caller == 'index') {
        that.resizeLoginContainer();
    } else {
        that.resizeConfigureContainer();
    }
};

CommonDisplayLayoutClass.prototype.resizeLoginContainer = function() {
    var that = this;
    var lcWidth = 360;
    var lcHeight = $('#login-container').height();
    var lcLeft = Math.max(0, Math.floor((that.windowWidth - lcWidth) / 2));
    var lcTop = Math.floor(that.windowHeight/2 - (lcHeight/2))-20;
    var statusRight = $('#login_btn').width() + parseInt($('#login_btn').css('padding-right')) +
        parseInt($('#login_btn').css('padding-right')) + parseInt($('#login_btn').css('right')) + 11;
    $('#login-container').css({left: lcLeft+'px', top: lcTop+'px'});
    $('#login-copyright-link').css({top: (lcTop + lcHeight + 15)+'px'});
    $('#ldap_login').parent().css({display: (!IFManager.IsAppFrame) ? 'block' : 'none'});
    $('#user_status-outer').css({right: statusRight+'px', 'border-color': '#fff'});
    $('#user_status-inner').css({'padding-top': '4px'});
    $('#user_status-inner-text').css({'font-weight': 'normal'});
    var minWidthHeight = Math.min(that.windowWidth, that.windowHeight);
    var thisOrientationButtonCss = (IFManager.AppOS == 'android' &amp;&amp; (minWidthHeight &gt;= 290 || lzm_commonDisplay.orientation == 'horizontal')) ? {display: 'block'} : {'display': 'none'};
    $('#orientation_btn').css(thisOrientationButtonCss);
};

CommonDisplayLayoutClass.prototype.resizeConfigureContainer = function() {
    var that = this;
    var lcWidth = 360;
    var innerWidth = 300;
    var profileActionType = $('#profile-configuration-div').data('type');
    var lcHeight = (profileActionType == 'empty') ? 330 : 550;
    var showProfileSelection = (profileActionType == 'empty') ? 'block' : 'none';
    var lcLeft = Math.max(0, Math.floor((that.windowWidth - lcWidth) / 2));
    var lcTop = Math.floor(that.windowHeight/2 - (lcHeight/2))-20;

    $('#configure-container').css({left: lcLeft+'px', top: lcTop+'px', height: lcHeight, display: 'block'});
    $('#configure-form').css({height: (lcHeight - 32)+'px'});
    $('#server_profile_selection').css({width: (innerWidth +15)+'px', 'min-width': '0px'});
    $('#profile-selection-div').css({display: showProfileSelection});
    $('#configure-buttons-div').css({display: showProfileSelection});
    $('#mobile-directory-container').css({display: 'none'});
    $('#configure-page-end').css({display: 'none'});

    if (profileActionType != 'empty') {
        $('#save_profile').css({display: 'inline', 'margin-right': '10px'});
        $('#back_btn').html(t('Cancel'));
    } else {
        $('#save_profile').css({display: 'none', 'margin-right': '10px'});
        $('#back_btn').html(t('Ok'));
    }
};

CommonDisplayLayoutClass.prototype.resizeInput = function(inputId, width, height, left, top) {
    $('#' + inputId + '-container').css({top: top+'px', left: left+'px', width: (width - 40)+'px'});
    //$('#' + inputId + '-text').css({width: '100%'});
    $('#' + inputId).css({width: (width - 80)+'px'});
};


</pre></body></html>