Browse Source

REPORT-5695 [9.0三轮回归][8.0]设计器缩放后,报表工具栏显示不全

master
MoMeak 7 years ago
parent
commit
791cd851ba
  1. 8
      designer_base/src/com/fr/design/gui/itoolbar/UIToolbar.java

8
designer_base/src/com/fr/design/gui/itoolbar/UIToolbar.java

@ -5,7 +5,6 @@ import java.awt.*;
import java.util.ArrayList; import java.util.ArrayList;
public class UIToolbar extends JToolBar { public class UIToolbar extends JToolBar {
private static final int TOOLBAR_HEIGNT = 26;
public UIToolbar() { public UIToolbar() {
this(FlowLayout.LEFT); this(FlowLayout.LEFT);
@ -24,13 +23,6 @@ public class UIToolbar extends JToolBar {
this(align, new UIToolBarUI()); this(align, new UIToolBarUI());
} }
@Override
public Dimension getPreferredSize() {
Dimension dim = super.getPreferredSize();
dim.height = TOOLBAR_HEIGNT;
return dim;
}
public void checkComponentsByNames(boolean flag, ArrayList<String> names) { public void checkComponentsByNames(boolean flag, ArrayList<String> names) {
for (int i = 0; i < getComponentCount(); i++) { for (int i = 0; i < getComponentCount(); i++) {
Component component = getComponents()[i]; Component component = getComponents()[i];

Loading…
Cancel
Save