mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-86732
This commit is contained in:
+2
-3
@@ -239,10 +239,9 @@ public class InplaceEditingLayer extends JComponent {
|
||||
private void adjustInplaceComponentSize() {
|
||||
myInplaceComponent.revalidate();
|
||||
Dimension size = myInplaceComponent.getPreferredSize();
|
||||
int width = Math.max(size.width, myPreferredWidth);
|
||||
width = Math.min(width, getWidth() - myInplaceComponent.getX());
|
||||
myInplaceComponent.setSize(width, myInplaceComponent.getHeight());
|
||||
myInplaceComponent.setSize(Math.max(size.width, myPreferredWidth), myInplaceComponent.getHeight());
|
||||
myInplaceComponent.revalidate();
|
||||
repaint();
|
||||
}
|
||||
|
||||
private void removeInplaceComponent() {
|
||||
|
||||
Reference in New Issue
Block a user