Browse Source

REPORT-99485 修复模版tab组件鼠标移动报错

newui
vito 11 months ago
parent
commit
598c6ee255
  1. 2
      designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

2
designer-base/src/main/java/com/fr/design/file/MultiTemplateTabPane.java

@ -922,7 +922,9 @@ public class MultiTemplateTabPane extends JPanel {
public void mouseMoved(MouseEvent e) {
int evtX = e.getX();
mouseOveredIndex = getTemplateIndex(evtX);
if (mouseOveredIndex > -1) {
setToolTipText(openedTemplate.get(mouseOveredIndex).getEditingFILE().getName());
}
hoverMoreAction = isOverListDown(evtX);
closeIconIndex = isOverCloseIcon(evtX) ? mouseOveredIndex : -1;
MultiTemplateTabPane.this.repaint();

Loading…
Cancel
Save