revert change in findPairedBracket, set max height to completion popup menu.

This commit is contained in:
Hans-Albert Maritz 2015-02-15 06:38:35 +11:00
parent 0b026d2c6c
commit 317749bee8
1 changed files with 2 additions and 1 deletions

View File

@ -103,6 +103,7 @@ class DSourceEdit : SourceEdit {
completionPopupItem.updateActionState(this);
PopupMenu popupMenu = new PopupMenu(completionPopupItem);
popupMenu.onMenuItemActionListener = this;
popupMenu.maxHeight(400);
PopupWidget popup = window.showPopup(popupMenu, this, PopupAlign.Point | PopupAlign.Right, textPosToClient(_caretPos).left + left + _leftPaneWidth, textPosToClient(_caretPos).top + top + margins.top);
popup.flags = PopupFlags.CloseOnClickOutside;
Log.d("Showing popup at ", textPosToClient(_caretPos).left, " ", textPosToClient(_caretPos).top);
@ -271,7 +272,7 @@ class SimpleDSyntaxHighlighter : SyntaxHighlighter {
for (;;) {
ch = nextBracket(dir, p);
if (!ch) // no more brackets
break;
return p;
auto match = _bracketStack.process(ch);
if (match == BracketMatch.FOUND)
return p;