Merge pull request #419 from sdburns1998/scroll-position

Remember scroll height
This commit is contained in:
Ganom
2019-05-27 21:23:57 -04:00
committed by GitHub

View File

@@ -850,7 +850,10 @@ public class ConfigPanel extends PluginPanel
}
configManager.setConfiguration(cd.getGroup().value(), cig.getGroup() + "_collapse", collapse);
int scrollBarPosition = scrollPane.getVerticalScrollBar().getValue();
openGroupConfigPanel(listItem, config, cd);
scrollPane.getVerticalScrollBar().setValue(scrollBarPosition);
}
}
@@ -888,7 +891,9 @@ public class ConfigPanel extends PluginPanel
if (itemHide.contains(cid.getItem().keyName()))
{ // If another options visibility changes depending on the value of this checkbox, then render the entire menu again
int scrollBarPosition = scrollPane.getVerticalScrollBar().getValue();
openGroupConfigPanel(listItem, config, cd);
scrollPane.getVerticalScrollBar().setValue(scrollBarPosition);
return;
}
}