Author: sevein
Date: Wed Aug 22 07:49:01 2012
New Revision: 12158

Log:
Avoid popover placement to be cached passing a function, fixes issue 2408

Modified:
   trunk/js/treeView.js

Modified: trunk/js/treeView.js
==============================================================================
--- trunk/js/treeView.js        Wed Aug 22 00:03:32 2012        (r12157)
+++ trunk/js/treeView.js        Wed Aug 22 07:49:01 2012        (r12158)
@@ -214,7 +214,11 @@
           return;
         }
 
-        $li.popover({ placement: (window.innerWidth - 
this.$element.offset().left < 550) ? 'left' : 'right' });
+        // Pass function so the placement is computed every time
+        $li.popover({ placement: function(popover, element) {
+            return (window.innerWidth - $(element).offset().left < 550) ? 
'left' : 'right';
+          }});
+
         $li.popover('show');
 
         return this;

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to