Is there a way to control the screen position of a popup? I have a custom popup with an image, but it always open cutoff on the bottom of the screen…
Sorry Scott - there is not currently a way to position the popup. It is centering on creation, and then pushing the contents down as the page builds.
no biggie - thanks for the quick response.
Hi Scott,
not sure if this will help but we had an issue with a large-ish popup opening in the middle of the screen, with the bottom of it falling off the screen. We were looking for a way to make it open at the top of the screen so the full popup would be shown. This other post was a good help - https://community.skuid.com/t/popup-initial-top-value
So we added a Custom Component above the page include and our popup looks like this:
and the Inline (Component) Resource ‘topRender’ is this:
var element = argumentsu0], $ = skuid.$;
$(document.body).one(‘pageload’,function() {
element.parents(‘.ui-dialog’).css({‘top’ : ‘20px’});
});
Ooh - the customer showing the way forward where the official rep said there wasn’t one. How cool is that! Thanks Greg… Its nice when you guys teach us stuff!
nice! thanks Greg!
Hi Greg and team,
Thank you for digging that up and for sharing it here! I for some reason are not able to make it work on my end. Custom inline component is created, the code is an exact copy and paste from your post above, and the component is dropped in at the top of my popup.
Has a more recent Skuid release changed how the code needs to be structured for this to work?
Thank you!
Robin
Hey Robin, I had noticed that happening myself in newer versions actually. I wouldn’t be able to answer your question unfortunately, maybe one of the skuid team could provide some input here.
I think we ended up doing a workaround for popups like this, where we would put everything in the popup inside a fixed height panel set, and allow vertical scrolling for the panel set. So the popup itself would be centred, but could still contain components longer than the screen.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.