File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
codeview/src/main/java/com/amrdeveloper/codeview Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -682,7 +682,8 @@ public void showDropDown() {
682682 }
683683
684684 final Rect displayFrame = new Rect ();
685- getWindowVisibleDisplayFrame (displayFrame );
685+ getGlobalVisibleRect (displayFrame );
686+
686687 int displayFrameHeight = displayFrame .height ();
687688
688689 int verticalOffset = lineButton + dropDownHeight ;
@@ -691,7 +692,7 @@ public void showDropDown() {
691692 }
692693
693694 setDropDownHeight (dropDownHeight );
694- setDropDownVerticalOffset (verticalOffset );
695+ setDropDownVerticalOffset (verticalOffset - displayFrameHeight - dropDownHeight );
695696 setDropDownHorizontalOffset ((int ) layout .getPrimaryHorizontal (position ));
696697
697698 super .showDropDown ();
You can’t perform that action at this time.
0 commit comments