mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Use UIUtil.getHTMLEditorKit() for correct font size scaling
See IDEA-170099
This commit is contained in:
@@ -139,7 +139,7 @@ public abstract class PluginManagerMain implements Disposable {
|
||||
|
||||
protected void init() {
|
||||
GuiUtils.replaceJSplitPaneWithIDEASplitter(main, true);
|
||||
HTMLEditorKit kit = new HTMLEditorKit();
|
||||
HTMLEditorKit kit = UIUtil.getHTMLEditorKit();
|
||||
StyleSheet sheet = kit.getStyleSheet();
|
||||
sheet.addRule("ul {margin-left: 16px}"); // list-style-type: none;
|
||||
myDescriptionTextArea.setEditorKit(kit);
|
||||
|
||||
+1
-1
@@ -96,7 +96,7 @@ public class DetectedPluginsPanel extends OrderPanel<PluginDownloader> {
|
||||
setCheckboxColumnName("");
|
||||
myDescriptionPanel.setPreferredSize(new Dimension(400, -1));
|
||||
myDescriptionPanel.setEditable(false);
|
||||
myDescriptionPanel.setContentType(UIUtil.HTML_MIME);
|
||||
myDescriptionPanel.setEditorKit(UIUtil.getHTMLEditorKit());
|
||||
myDescriptionPanel.addHyperlinkListener(new PluginManagerMain.MyHyperlinkListener());
|
||||
removeAll();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user