Unable to resize modal page using nativescript


#1

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">
....
</StackLayout>

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


#2

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.


#3

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
};


#4

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