Commit e09ef36a authored by Sam Hemelryk's avatar Sam Hemelryk
Browse files

lib-navigation MDL-21113 Fixed minor javascript error when positioning sidepanel tabs for display

parent 0a4abb73
......@@ -609,7 +609,7 @@ navigation_tab_panel.prototype.resize_tab = function () {
// This makes sure that if the panel is big it is moved up to ensure we don't
// have wasted space above the panel
if ((tabtop+tabheight)>screenheight && tabtop > 10) {
if ((tabtop+tabheight)>(screenheight+scrolltop) && tabtop > 10) {
tabtop = (screenheight-tabheight-10);
if (tabtop<10) {
tabtop = 10;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment