Permalink
Browse files

add a small style fix using js

  • Loading branch information...
1 parent d3f788a commit 008cafd89d2c944075e626343f36e87bb7162c5b @FinalAngel FinalAngel committed Feb 27, 2014
Showing with 3 additions and 1 deletion.
  1. +3 −1 cms/static/cms/js/plugins/cms.plugins.js
@@ -544,7 +544,9 @@ $(document).ready(function () {
// calculate subnav bounds
if($(window).height() + $(window).scrollTop() - nav.offset().top - dropdown.height() <= 10) {
dropdown.css('top', 'auto');
- dropdown.css('bottom', offset - 1);
+ dropdown.css('bottom', offset);
+ // if parent is within a plugin, add additional offset
+ if(dropdown.closest('.cms_draggable').length) dropdown.css('bottom', offset - 1);
} else {
dropdown.css('top', offset);
dropdown.css('bottom', 'auto');

0 comments on commit 008cafd

Please sign in to comment.