Author: sevein
Date: Tue Oct  4 01:28:39 2011
New Revision: 9913

Log:
Trying to autoscroll to anchors applying header offset

Modified:
   trunk/plugins/qtTrilliumPlugin/js/trillium.js

Modified: trunk/plugins/qtTrilliumPlugin/js/trillium.js
==============================================================================
--- trunk/plugins/qtTrilliumPlugin/js/trillium.js       Tue Oct  4 01:07:35 
2011        (r9912)
+++ trunk/plugins/qtTrilliumPlugin/js/trillium.js       Tue Oct  4 01:28:39 
2011        (r9913)
@@ -93,6 +93,13 @@
             }
           });
 
+        // Scroll
+        if (window.location.hash.length)
+        {
+          var top = $(window.location.hash).offset().top;
+          // TODO Increase the scroll considering the header height
+        }
+
         // Search box behavior
         $('div.search').each(function()
           {

-- 
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