mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-172136 Search text area has an improper height
This commit is contained in:
@@ -479,16 +479,12 @@ public class SearchTextArea extends NonOpaquePanel implements PropertyChangeList
|
||||
|
||||
@Override
|
||||
String getHistoryButtonConstraints() {
|
||||
return "ay top, gaptop " + JBUI.scale(getIconTopGap());//Double scaling inside but it looks not bad
|
||||
}
|
||||
|
||||
private int getIconTopGap() {
|
||||
return Math.max(2, (UIUtil.getLineHeight(myTextArea) + myTextArea.getInsets().top + myTextArea.getInsets().bottom - JBUI.scale(16)) / 2);
|
||||
return "ay baseline";
|
||||
}
|
||||
|
||||
@Override
|
||||
String getIconsPanelConstraints() {
|
||||
return "gaptop " + getIconTopGap() + ",ay top";
|
||||
return "ay baseline";
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user