
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-12-2019 02:24 AM
Hello,
Any idea on how to center my modal pop up? When my browser is maximized the pop up is located at the right side
But when I minimize my browser to a certain width, it is completely fine and centered.
Kind Regards,
Raphael
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:58 PM
Hello,
I think I found the reason why the modal is appearing on the right side. I tried to uncheck the 'left:50%' in modal-dialog and i set the left to 0% and it is now appearing at the center

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 09:14 PM
Hi Raphael,
Can you right click on the modal-> Inspect, once it is loaded and check the console or post a screenshot of the same?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 09:47 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:04 PM
Notice the "col-sm-6 col-sm-offset-3 ng-scope"?
When you are in full screen, try removing those classes from the inspector. Now I realize this won't actually fix the problem, but it should give you a clue as to why the modal is behaving the way it is. Because it appears your "ng-template" is somehow being infuenced by these bootstrap grid classes.
I also noticed that you have than one bootstrap style sheet. "bootstrap.min.css". You should be okay with ServiceNow's "sp-bootstrap..."

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:32 PM
Hello,
I just added 'col-sm-6 col-sm-offset-3 ng-scope' to try if it will fix the problem but it didn't do anything so even if i remove it its still the same. How do I remove a bootstrap style sheet?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2019 10:52 PM
Well the reason I was focusing on the classes "col-sm-6 col-sm-offset..." was becsuse I believe this is most likely influencing the behavior of your modal.
To remove the unneeded boostrap.min.css stylesheet, go to Service Portal > CSS.