The modal dialog only supports absolute sizes in pixels. You could use piWindowHeight and piWindowWidth to size it to the full screen. Not sure if that will give the desirable outcome.