popup resize on portal

Amol J
Kilo Contributor

Hello,

I have created modal instance but I am having issue in resizing the height and width of popup.

$scope.modalInstance = $uibModal.open({

templateUrl: 'Privacy_popup_onClick',
scope: $scope,
size: size,


});
}

i want to increase the height and width of popup shown below.

find_real_file.png

 

3 REPLIES 3

Willem
Giga Sage
Giga Sage

Size can only be small ("sm") or large ("lg").

 

You could add the following to your code:

var checkExist = setInterval(function () {
    if (top.document.getElementsByClassName('modal-dialog')[0]) {
        clearInterval(checkExist);
        var modalDialog = top.document.getElementsByClassName('modal-dialog')[0];
        modalDialog.style.height = "100%";
        modalDialog.style.width = "100%";
		
		var modalContent = top.document.getElementsByClassName('modal-content')[0];
		modalContent.style.height = "auto";
        modalContent.style["min-height"] = "80%";
		modalContent.style["border-radius"] = 0;

    }
}, 100); // check every 100ms

Change the 80% if you want it more/less high. Change the width 100% if you want it less wide.

Bhagyashri Sort
Kilo Guru

Hi,

 Refer below link, it might help you.

https://community.servicenow.com/community?id=community_question&sys_id=a0909369dbdcdbc01dcaf3231f96...

 

Mark it correct and helpful.

Thanks

Bhagyashri Sorte.

Willem
Giga Sage
Giga Sage

@Amol J is this issue resolved? If so, kindly mark answer as Helpful and Correct to close the thread.