lee 8 years ago
parent
commit
001aab092b
  1. 2
      designer_form/src/com/fr/design/designer/creator/cardlayout/XCardSwitchButton.java

2
designer_form/src/com/fr/design/designer/creator/cardlayout/XCardSwitchButton.java

@ -395,9 +395,9 @@ public class XCardSwitchButton extends XButton {
this.tagLayout.getComponent(i).setBounds(rectangle); this.tagLayout.getComponent(i).setBounds(rectangle);
Dimension dimension = new Dimension(); Dimension dimension = new Dimension();
dimension.setSize(cardWidth, cardHeight); dimension.setSize(cardWidth, cardHeight);
XCardSwitchButton temp = (XCardSwitchButton) this.tagLayout.getComponent(i);
CardSwitchButton cardSwitchButton = (CardSwitchButton) temp.toData(); CardSwitchButton cardSwitchButton = (CardSwitchButton) temp.toData();
FRFont frFont = cardSwitchButton.getFont(); FRFont frFont = cardSwitchButton.getFont();
XCardSwitchButton temp = (XCardSwitchButton) this.tagLayout.getComponent(i);
UILabel label = temp.getContentLabel(); UILabel label = temp.getContentLabel();
label.setSize(dimension); label.setSize(dimension);
label.setFont(frFont.applyResolutionNP(ScreenResolution.getScreenResolution())); label.setFont(frFont.applyResolutionNP(ScreenResolution.getScreenResolution()));

Loading…
Cancel
Save