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

Drawing of the popup window fails on Win XP #72

Closed
GoogleCodeExporter opened this issue Aug 28, 2015 · 5 comments
Closed

Drawing of the popup window fails on Win XP #72

GoogleCodeExporter opened this issue Aug 28, 2015 · 5 comments

Comments

@GoogleCodeExporter
Copy link

Noticed on a clean XP SP3 machine.

Popup windows work fine in cefclient, so this is PHP Desktop only issue.

It seems that the code that causes this bug is when positioning the window. 
When the option "center_relative_to_parent" in settings.json is set to false, 
then the popup window is drawed fine. There is probably missing a call to 
UpdateWindow() after the window was repositioned.

Original issue reported on code.google.com by czarek.t...@gmail.com on 1 Feb 2014 at 12:01

@GoogleCodeExporter
Copy link
Author

Popup windows work fine in MSIE on XP. This is only a Chrome issue.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 12:04

@GoogleCodeExporter
Copy link
Author

The the CenterWindowRelativeToParent() function there was a call to 
MoveWindow(), but its last parameter bRepaint was set to FALSE. It needs to be 
set to TRUE to fix the issue.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 12:08

@GoogleCodeExporter
Copy link
Author

Fixed in revision c65311dc8f91.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 12:14

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Noticed a minor glitch when popup window appears on Win XP. The window is 
jumping a bit from. Originally it is positioned at 0, 0 and in OnAfterCreated 
it is repositioned, but that happens after the window already appeared. There 
is a comment in OnAfterCreated that explains this behavior:

  // It would be best to provide x,y coordinates in OnBeforePopup,
  // but setting windowInfo.x and windowInfo.y there doesn't work.
  // These coordinates are probably used only when calling SetAsChild().
  // So we have to center it after the window was created.

It may be fixable, but that would require further investigation.

Original comment by czarek.t...@gmail.com on 1 Feb 2014 at 12:17

@GoogleCodeExporter
Copy link
Author

Project will move to Github. Find this issue at the new address (soon): 
https://github.com/cztomczak/phpdesktop/issues/72

Original comment by czarek.t...@gmail.com on 24 Aug 2015 at 3:25

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

No branches or pull requests

1 participant