DialogWrapper Dimensions
I'm using the below DialogWrappers for redirection to an external website from the Plugin.
The DialogWrapper comprises a JPanel that has two labels (one for the question and the other for the redirection link as present in the below screenshots).I'm not setting any dimensions to the DialogWrapper.


When I run the plugin locally, I get a warning message saying “dialog minimum size is bigger than screen: 487x724” as below. The message is generic and does not contain the CustomDialogWrapper classnames.
1.) However, I would like to confirm if this warning relates to the custom dialog wrappers I have in my plugin?
2024-12-02 20:25:46,494 [ 1994] WARN - #c.i.o.a.Application - issue detected: ide.script.launcher.used2024-12-02 20:26:06,036 [ 21536] WARN - #c.i.o.u.DialogWrapper - dialog minimum size is bigger than screen: 487x724 com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog$DialogRootPane com.intellij.openapi.wm.impl.IdeGlassPaneImpl com.intellij.openapi.ui.impl.DialogWrapperPeerImpl$MyDialog$DialogRootPane$1 com.intellij.openapi.wm.impl.customFrameDecorations.header.CustomFrameDialogContent com.intellij.openapi.wm.impl.customFrameDecorations.header.DialogHeader com.intellij.openapi.wm.impl.customFrameDecorations.header.CustomHeader$createProductIcon$ic$1 javax.swing.JLabel javax.swing.JPanel javax.swing.JPanel javax.swing.JPanel com.intellij.ide.wizard.AbstractWizard$TallImageComponent
2.) Are there any dimension standards to follow for a DialogWrapper? I checked out the Layout doc https://plugins.jetbrains.com/docs/intellij/layout.html#buttons-and-links page that says about controls and arrangements
请先登录再写评论。
Hi,
1) It's hard to say, and I suggest debugging the code from the warning message.
2) There are no standards defined for dialogs (it is planned, but the date is unknown). I suggest making its size reasonable and if the warning is about your dialog, try to make it smaller to make the warning disappear.