|
|
|
@ -87,9 +87,11 @@ public class ChangeLayoutComponentGuide {
|
|
|
|
|
@Override |
|
|
|
|
public boolean prepared() { |
|
|
|
|
switchButton.getComponentPopupMenu().setVisible(true); |
|
|
|
|
Rectangle popupBounds = GuideCreateUtils.getRelativeBounds(switchButton.getComponentPopupMenu(), switchButton,0, -switchButton.getComponentPopupMenu().getHeight()); |
|
|
|
|
switchButton.getComponentPopupMenu().show(scene.getContainer(), popupBounds.x, popupBounds.y); |
|
|
|
|
scene.addCustomTarget( |
|
|
|
|
GuideCreateUtils.createModalTarget(switchButton.getComponentPopupMenu()), |
|
|
|
|
GuideCreateUtils.getRelativeBounds(switchButton.getComponentPopupMenu(), switchButton,0, -switchButton.getComponentPopupMenu().getHeight()) |
|
|
|
|
popupBounds |
|
|
|
|
); |
|
|
|
|
scene.addClickTarget(switchButton.getComponentPopupMenu().getComponent(1), ClickScene.ClickType.LEFT, true); |
|
|
|
|
scene.addBubbleTip(Toolkit.i18nText("Fine-Design_Guide_Scene_F001002_Tip_Select_Fix_layout"), null, GuideTip.Direction.RIGHT, 0.5f, 0.8f); |
|
|
|
|