Integrated Dynamics

Integrated Dynamics

63M Downloads

Scroll of ?Aspect? list in GUI for Portable Logic Programmer keeps resetting

tdaffin opened this issue ยท 1 comments

commented

Issue type:

  • ๐Ÿ› Bug

Short description:

The list on the left side (are they called aspects?) of the GUI of the Portable Logic Programmer keeps resetting when I pull a variable card out of the 'written' slot on the right side.

Expected behaviour:

The list on the left side stays where it was

Actual behaviour:

The list on the left side snaps back to the top. It is worth noting that the 'thumb' in the scroll bar stays in the same place and if I click on it without moving it the scroll position is returned to the place I expect to find it.

Steps to reproduce the problem:

  1. Open the portable logic programmer gui
  2. Create an Item variable card
  3. Scroll the list on the left down to the 'mod' entry (about 1/2 way down) and click on it. Be careful to choose the 'Item Mod' entry for 'mod' not 'Block Mod' as you need an entry that will accept an Item type as an input
  4. Place the item variable you just created in the input and place a new variable card in the 'output' slot
  5. When you remove the new variable card from the output slot the list on the left scrolls back to the top.

Versions:

Exact versions of the following mods, not just latest.

  • This mod: 0.11.1
  • CyclopsCore: 0.11.2-791
  • Minecraft: 1.12.2
  • Forge: 14.23.1.2555

Log file:

No log file needed, but I have looked into the code a little and it appears that the problem is in org.cyclops.cyclopscore.inventory.container.ScrollingInventoryContainer.updateFilter(String) where it always calls scrollTo(0)

commented

Fix works great, thanks!