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

docking windows don’t slide out on relaunch #811

Closed
skurfer opened this issue Apr 12, 2012 · 2 comments · Fixed by #824
Closed

docking windows don’t slide out on relaunch #811

skurfer opened this issue Apr 12, 2012 · 2 comments · Fixed by #824
Assignees

Comments

@skurfer
Copy link
Member

@skurfer skurfer commented Apr 12, 2012

The only way I’ve found to get them working correctly is to show them and resize them a bit. Something about resizing them makes everything work.

I’ve got a branch going where I’ve started working on this.

1369e50097 helps a little. With that change, you just have to manually show the panel once and after that, it will slide out.

There are two problems I still need to figure out.

  1. The window doesn’t seem to exist at all on launch, so it can’t respond to mouseEntered: until you manually show it once.
  2. When the window is created, trackingRect is only 256 pixels wide, so the panel only slides out if you touch somewhere in the left-most 256px. The window itself is somehow the correct size. If you resize it by one pixel, the tracking rect suddenly jumps to the actual window size (give or take the one pixel you just changed).

Stumped and giving up for now, if anyone has any ideas.

@ghost ghost assigned skurfer Apr 12, 2012
@skurfer
Copy link
Member Author

@skurfer skurfer commented Apr 16, 2012

I’ve figured out that trackingRect is initially using the default size from the clipboard history’s NIB in the plug-in. The window itself always appears at the correct size for some reason.

@skurfer skurfer mentioned this issue Apr 16, 2012
@skurfer
Copy link
Member Author

@skurfer skurfer commented May 4, 2012

Fixed by #824

@skurfer skurfer closed this as completed May 4, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant