Unable to resize modal page using nativescript


Using the below code ,it sets the width and height of the page with the specified background-color but still there is some extra padding the modal page with transparent background

  <StackLayout width="400" height="400" backgroundColor="red">

how do i remove the extra padding or how can i dynamically set the size of the modal to its content


I don’t think you can adjust the size of modal page, its bit complicated in iOS and you may have to write more custom native code.


is there any way to pass the page size while calling showmodal(arg1,arg2) function of ModalDialogService

something like this:

let options = {
fullscreen: false,
viewContainerRef: this.vcRef


No, we don’t have any option as such.