How to set height & width of the popup?
Permalink Browser Info Environment
Hi
How do I control the height and width of the popup. Does it take it from the Stack? Or do I need to make a custom template? If so, have you got an example or any pointers?
Thanks
Russell
How do I control the height and width of the popup. Does it take it from the Stack? Or do I need to make a custom template? If so, have you got an example or any pointers?
Thanks
Russell
Type: | Discussion |
---|---|
Status: | New |
Look for .stack-modal .modal on line 27 this file is loaded in the modal's controller.
Adjust the width to your new value and then offset it with negative margin on the left. If you adjust height, offset with negative margin on the top. Default width is 560px and default margin is -250px 0 0 -280px. So if you increase the width, adjust the margin to your liking.
You can override the default by using a custom template. Add a class to the "stack-modal" div such as "myWidth" and then include the following in your view.css