Skip to content

Commit 9a66b4b

Browse files
author
mreishman
committed
bugfix for expand menu near edge of screen
1 parent b1414f5 commit 9a66b4b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

core/html/changelog.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@
1313
</li>
1414
</ul>
1515
</li>
16+
<li>
17+
Bug Fixes
18+
<ul>
19+
<li>
20+
Expand menu dropdown near bottom of screen now changes directions on first click
21+
</li>
22+
</ul>
23+
</li>
1624
</ul>
1725
</li>
1826
<li>

core/js/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,6 +1649,8 @@ function dropdownShow(nameOfElem)
16491649
var currentElement = document.getElementById("dropdown-"+nameOfElem);
16501650
currentElement.style.display = 'block';
16511651
currentElement.style.marginTop = "0px";
1652+
$("#dropdown-"+nameOfElem).css("top" , "" + ($("#innerFirstDevBox"+nameOfElem+" .expandMenu").position().top + $("#innerFirstDevBox"+nameOfElem+" .expandMenu").height()) + "px")
1653+
currentElement = document.getElementById("dropdown-"+nameOfElem);
16521654
var elementLowestPosition = (currentElement.getBoundingClientRect().top+currentElement.offsetHeight);
16531655
var heightWindow = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight;
16541656
if(elementLowestPosition > heightWindow)

0 commit comments

Comments
 (0)