ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
How-to set height of PopupForm and Popup based on content
Title:
B
I
{code}
?
Hello, is it possible to set the height and width of PopupForm and Popup based on the displayed content. We open a PopupForm and load a MVC view as content. The views content differ in height and width, so the PopupForm is sometimes too small or too big. Thanks. Michael
Save Changes
Cancel
mkscisystems
asked at 13 Apr 2015
it's not possible atm, you could use .FullScreen(true) or use the bootstrap popup which height will depend on the content
at 13 Apr 2015
Omu
Thanks for your quick answer, how is it possible to change from jquery to bootstrap mode in code?
at 13 Apr 2015
mkscisystems
if you're going to use just bootstrap popup you can do awe.popup = bootstrapPopup; the demo app is using 3 popup types and they can be changed from the dropdown, have a look at this: http://demo.aspnetawesome.com/PopupDemo#Mods
at 13 Apr 2015
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK