LanguageTextField Background scrambles when scrolling
已计划
This is main code:
@Override
public void componentResized(ComponentEvent componentEvent) {
EditorEx editor = (EditorEx) this.editorPane.getEditor();
if (editor != null) {
editor.setHorizontalScrollbarVisible(true);
editor.setVerticalScrollbarVisible(true);
EditorSettings editorSettings = editor.getSettings();
if (!editorSettings.isLineNumbersShown()) editorSettings.setLineNumbersShown(true);
if (!editorSettings.isFoldingOutlineShown()) editorSettings.setFoldingOutlineShown(true);
}
}
Normal background:
Unusual background:
Scrolling will trigger this exception
请先登录再写评论。
Sorry, but I'm not sure what exactly your problem is.
@Jakub Chrzanowski
Please pay attention to the background picture, the second screenshot is obviously messy
看看这个:
Is this custom background your plugin's implementation? Which class do you extend? Is there any parent methods that you may call in componentResized?
来自的背景图片:
My more code:
Added: Only appear in independent window, it is normal to dock on the right.
Hello, official staff, do you guys deal with this problem now? Or I do n’t provide enough information, you did n’t locate the error, I ’m happy to add more details
Cannot reproduce the problem, it just works for me.