popup resize on portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-05-2019 03:25 AM
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.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020 04:17 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-31-2020 04:57 AM
Hi,
Refer below link, it might help you.
Mark it correct and helpful.
Thanks
Bhagyashri Sorte.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2020 12:09 AM