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

This commit is contained in:
Sam Hemelryk 2009-12-16 02:08:53 +00:00
parent 0a4abb7306
commit e09ef36a4c

View file

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