mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Mac laf: add text offsets to text fields
This commit is contained in:
+9
-4
@@ -147,10 +147,15 @@ public class MacIntelliJTextFieldUI extends TextFieldWithPopupHandlerUI {
|
||||
@Override
|
||||
protected Rectangle getVisibleEditorRect() {
|
||||
Rectangle rect = super.getVisibleEditorRect();
|
||||
if (rect != null && isSearchField(myTextField)) {
|
||||
rect.width -= 36;
|
||||
rect.x += 19;
|
||||
rect.y +=1;
|
||||
if (rect != null) {
|
||||
if (isSearchField(myTextField)) {
|
||||
rect.width -= 36;
|
||||
rect.x += 19;
|
||||
rect.y += 1;
|
||||
} else {
|
||||
rect.x += 2;
|
||||
rect.width -=4;
|
||||
}
|
||||
}
|
||||
return rect;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user