mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-22 15:19:59 +07:00
IJPL-177749 Restore three dots button in lookup
It went missing due to the hardcoded `LookupBottomLayout` layout. Its wrapper size was not updated. (cherry picked from commit 3cb66e335c3de50c5b310de87a314b6f5cf4c400) IJ-CR-157279 GitOrigin-RevId: d099d412ba2455f995fdd2e2a6c2f7f06e6a6362
This commit is contained in:
committed by
intellij-monorepo-bot
parent
5ca629ce0b
commit
43135022ff
@@ -63,8 +63,8 @@ final class LookupUi {
|
||||
private final Alarm hintAlarm;
|
||||
private final JScrollPane myScrollPane;
|
||||
private final AsyncProcessIcon processIcon = new AsyncProcessIcon("Completion progress");
|
||||
private final ActionButton myMenuButton;
|
||||
private final ActionButton hintButton;
|
||||
private final JComponent myMenuButton;
|
||||
private final JComponent hintButton;
|
||||
private final @Nullable JComponent myBottomPanel;
|
||||
|
||||
private int myMaximumHeight = Integer.MAX_VALUE;
|
||||
@@ -97,8 +97,8 @@ final class LookupUi {
|
||||
menuAction.addSeparator();
|
||||
menuAction.add(new ShowCompletionSettingsAction());
|
||||
|
||||
myMenuButton = new ActionButton(menuAction, null, ActionPlaces.EDITOR_POPUP, ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);
|
||||
JComponent menuButtonWrapper = UiDataProvider.wrapComponent(myMenuButton, sink -> {
|
||||
ActionButton menuButton = new ActionButton(menuAction, null, ActionPlaces.EDITOR_POPUP, ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);
|
||||
myMenuButton = UiDataProvider.wrapComponent(menuButton, sink -> {
|
||||
sink.set(CommonDataKeys.PROJECT, this.lookup.getProject());
|
||||
sink.set(CommonDataKeys.EDITOR, this.lookup.getEditor());
|
||||
});
|
||||
@@ -115,7 +115,7 @@ final class LookupUi {
|
||||
myBottomPanel.add(myAdvertiser.getAdComponent());
|
||||
myBottomPanel.add(processIcon);
|
||||
myBottomPanel.add(hintButton);
|
||||
myBottomPanel.add(menuButtonWrapper);
|
||||
myBottomPanel.add(myMenuButton);
|
||||
if (ExperimentalUI.isNewUI()) {
|
||||
myBottomPanel.setBackground(JBUI.CurrentTheme.CompletionPopup.Advertiser.background());
|
||||
myBottomPanel.setBorder(JBUI.CurrentTheme.CompletionPopup.Advertiser.border());
|
||||
|
||||
Reference in New Issue
Block a user