mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-89462 Second long warning notification is shown with strange scrollbar
This commit is contained in:
+3
-1
@@ -289,7 +289,9 @@ public class NotificationsManagerImpl extends NotificationsManager implements No
|
||||
|
||||
content.setBorder(new EmptyBorder(2, 4, 2, 4));
|
||||
|
||||
Dimension preferredSize = pane.getPreferredSize();
|
||||
Dimension preferredSize = text.getPreferredSize();
|
||||
text.setSize(preferredSize);
|
||||
preferredSize = text.getPreferredSize();
|
||||
int maxHeight = Math.min(400, window.getComponent().getHeight() - 20);
|
||||
if (preferredSize.height > maxHeight) {
|
||||
pane.setPreferredSize(new Dimension(preferredSize.width, maxHeight));
|
||||
|
||||
Reference in New Issue
Block a user