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

HostWindowPlugin does not account for window decorations on resize #40

Closed
marceltaeumel opened this issue Aug 19, 2016 · 1 comment
Closed

Comments

@marceltaeumel
Copy link
Contributor

marceltaeumel commented Aug 19, 2016

VM: 201608171728 (Cog, Spur)
HostWindowPlugin: VMMaker.oscog-eem.1716 (i)
Platform: Windows 10 1607, OS X El Capitan 10.11.6

If you call the named primitive primitiveHostWindowSizeSet, the Display will not have the correct size after the call.

Try it in Squeak 5.1rc1:

DisplayScreen
   hostWindowExtent: 800@600;
   checkForNewScreenSize.
self assert: Project current world extent = (800@600).

In Squeak, there is a image-side workaround for that in DisplayScreen >> #setNewScreenSize:, which calculates the difference and then calls the primitive again.

On OS X the bug seems to affect only the window title bar and hence only the height. On Windows 10 also the left/right shadows interfere and hence both height and width are wrong.

This bug affects both the 32-bit and the 64-bit versions.

@eliotmiranda
Copy link
Contributor

I finally fixed this in d990bfd

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

No branches or pull requests

2 participants