feat: 兼容大显示器无法登录功能

This commit is contained in:
cirry 2024-01-07 14:06:04 +08:00
parent 79391f30e3
commit 50a42227b6

View File

@ -32,7 +32,7 @@ class MyToolWindowFactory : ToolWindowFactory {
val noSupportLabel = JBLabel(MyBundle.message("noSupport")) val noSupportLabel = JBLabel(MyBundle.message("noSupport"))
if (JBCefApp.isSupported()) { if (JBCefApp.isSupported()) {
val jbcef = JBCefBrowser() val jbcef = JBCefBrowser()
jbcef.component.preferredSize = Dimension(800,900) jbcef.component.preferredSize = Dimension(900,900)
add(jbcef.component, BorderLayout.CENTER) add(jbcef.component, BorderLayout.CENTER)
jbcef.loadURL("https://weread.qq.com/") jbcef.loadURL("https://weread.qq.com/")
} else { } else {