Browse Source

bug fix

master
XiaXiang 8 years ago
parent
commit
19ddad4e26
  1. 9
      designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

9
designer/src/com/fr/design/mainframe/alphafine/component/AlphaFineDialog.java

@ -605,15 +605,20 @@ public class AlphaFineDialog extends UIDialog {
} }
/**
* 点击显示更多时添加对应的model到list点击收起是移除model
* @param index
* @param selectedValue
*/
private void rebuildShowMoreList(int index, MoreModel selectedValue) { private void rebuildShowMoreList(int index, MoreModel selectedValue) {
SearchResult moreResult = getMoreResult(selectedValue); SearchResult moreResult = getMoreResult(selectedValue);
if((selectedValue).getContent().equals(Inter.getLocText("FR-Designer_AlphaFine_ShowLess"))) { if((selectedValue).getContent().equals(Inter.getLocText("FR-Designer_AlphaFine_ShowLess"))) {
for (int i = 0; i < moreResult.size(); i++) { for (int i = 0; i < moreResult.size(); i++) {
this.searchListModel.insertElementAt(moreResult.get(i), index + AlphaFineConstants.SHOW_SIZE -1 + i); this.searchListModel.insertElementAt(moreResult.get(i), index + AlphaFineConstants.SHOW_SIZE + 1 + i);
} }
} else { } else {
for (int i = 0; i < moreResult.size(); i++) { for (int i = 0; i < moreResult.size(); i++) {
this.searchListModel.removeElementAt(index + AlphaFineConstants.SHOW_SIZE - 1); this.searchListModel.removeElementAt(index + AlphaFineConstants.SHOW_SIZE + 1);
} }
} }

Loading…
Cancel
Save