Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't reopen popup #10

Closed
GDreyV opened this issue May 13, 2015 · 11 comments
Closed

can't reopen popup #10

GDreyV opened this issue May 13, 2015 · 11 comments
Labels

Comments

@GDreyV
Copy link

GDreyV commented May 13, 2015

I faced a problem hope you can help me. I have extension with popup.
Here is description for popup:

<UI>
    <Type>Modeless</Type>
    <Lifecycle>
        <AutoVisible>false</AutoVisible>
    </Lifecycle>
    ...
</UI>

popup is opened in pretty simple way:

var cs = new CSInterface();
cs.requestOpenExtension("my.extension.popup");

When I close popup and try to reopen it everything works fine. But if I close main panel while popup is opened popup is closed automatically and I it can't be reopened after panel is started again. Do you have any ideas what I'm doing wrong?

Thanks

@arthurwei1975
Copy link
Contributor

In the popup extension's manifest, you set false. Do you do anything to make it visible in the extension's code? Maybe you should set AutoVisible to true. Thanks

@GDreyV
Copy link
Author

GDreyV commented May 13, 2015

As I understand AutoViible makes sense only for Panel items to make them opened or closed by default.
Anyway I checked true and false for AutoVisible with different values for StartOn Event and behavior was the same.
To make popup visible I just call requestOpenExtension in main panel.

@lesavage
Copy link
Contributor

Are your panel and modeless dialog contained in a bundle e.g. defined in the same manifest file similar to our Test Extension (https://github.com/Adobe-CEP/Samples/blob/master/CEP_HTML_Test_Extension/CSXS/manifest.xml) or delivered separately?

If you download our Test Extension and attempt to launch your modeless dialog (CS APIs > Open/Close Extension > Get All Extensions) and then complete the above workflows, do you see the same behaviour?

@GDreyV
Copy link
Author

GDreyV commented May 14, 2015

Thanks for example. Yes, I managed to reproduce it:
Run CEP HTML Panel 1;
choose CSXS APIs;
then Open/Close Extension;
click Get All Extensions and run CEP HTML Test Modeless Dialog;
close CEP HTML Test Panel 1 (just opened CEP HTML Modeless Dialog will be closed automatically);
try to do the same once again. I didn't manage to reopen CEP HTML Test Modeless Dialog.

@lesavage
Copy link
Contributor

Can you confirm your environment setup so we can investigate it further:
Mac/Windows? OS version?
Adobe Application and version?
Thanks.

@GDreyV
Copy link
Author

GDreyV commented May 14, 2015

Here is what I've got from System Info. Hope it helps
Adobe Photoshop Version: 2014.2.2 20141204.r.310 2014/12/04:23:59:59 CL 994532 x64
Operating System: Windows 8.1 64-bit
Version: 6.3

@lesavage
Copy link
Contributor

Hi. I can confirm that I see this behaviour so thank you for reporting it. I will look to get this fixed in a future release.

@lesavage lesavage added the bug label May 14, 2015
@arthurwei1975
Copy link
Contributor

If the popup dialog is simple, you can try to use a pure JavaScript dialog, rather than a separate modeless CEP extension.

@GDreyV
Copy link
Author

GDreyV commented May 14, 2015

Yeah, the point of the modeless popup was ability to work with both panels and reflect changes. As temporary workaround I'm using modal dialog. It's not really user friendly and what I was looking for but it's still better than nothing :)

Thanks for help! Hope this issue will be resolved soon :)

@arthurwei1975
Copy link
Contributor

This bug will be fixed in next version of CEP. Thanks

@arthurwei1975
Copy link
Contributor

This bug should have been fixed in Photoshop CC 2015 November release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants