]> gitweb.fluxo.info Git - lorea/elgg.git/commitdiff
Fixes #3234: Adding explicit collision param for popups.
authorbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 29 Mar 2011 01:24:16 +0000 (01:24 +0000)
committerbrettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544>
Tue, 29 Mar 2011 01:24:16 +0000 (01:24 +0000)
git-svn-id: http://code.elgg.org/elgg/trunk@8875 36083f99-b078-4883-b0ff-0f9b5a30f544

js/lib/ui.js

index ecf4cc763a03591f0106f42c4f1038711844de78..3a69e4bfcbb563772b8e5b1d7e6fc96b959d5384 100644 (file)
@@ -76,7 +76,8 @@ elgg.ui.popsUp = function(event) {
        var options = {
                my: 'center top',
                at: 'center bottom',
-               of: $(this)
+               of: $(this),
+               collision: 'fit fit'
        }
 
        options = elgg.trigger_hook('getOptions', 'ui.popup', params, options);