mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
lib-navigation MDL-21113 Fixed minor javascript error when positioning sidepanel tabs for display
This commit is contained in:
parent
0a4abb7306
commit
e09ef36a4c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue