Changeset 37769


Ignore:
Timestamp:
2023-06-15T19:29:22+12:00 (11 months ago)
Author:
anupama
Message:

Related to yesterday's commit 37765. The old call to plugin_list.setSelectedValue() would also scroll the selected value into view. Now that we're selecting the plugin based on index, we'd still like to scroll the selection into view.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/cdm/PluginManager.java

    r37766 r37769  
    841841            if(selectedIndex >= 0 && selectedIndex < plugin_list.getModel().getSize()) {
    842842                plugin_list.setSelectedIndex(selectedIndex);
     843                plugin_list.ensureIndexIsVisible(selectedIndex);
    843844            }
    844845            }
Note: See TracChangeset for help on using the changeset viewer.