-
-
Notifications
You must be signed in to change notification settings - Fork 327
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
Issues with window/frame sizes #12
Comments
Oh, another data point that might be useful. If we specify a resolution, for instance
The initial settings for the data entries above is:
It would seem then that the frame is twice the dimensions it should be, if I'm understanding correctly. I've also seen a lot of adjustments in the code for macOS, which I'm using. Could it be something going wrong with that adjustment process, perhaps even something that's been changed recently in macOS? |
yes! macos is special in this regard, and i was thinking i fixed it... i suspect there is a bug somewhere in the macos adjustment code. |
I will happily be the guinea pig if you need a macOS system to test things on. |
Great! Can you try the same with JuliaGL/GLWindow.jl#51 ? I hope that fixes it. |
I just tried after checking out the |
Thanks! I've added some debug statements to the sd/makie branch, if you could try them out :) |
My new output:
Should I be seeing other debug messages? |
Ah I think I know what it is. Please tell me that the newest commit at sd/makie fixes it! :P |
Looks the same, unfortunately. Again, I don't know if this helps to narrow things down, but I noticed that |
Ok, I think I've narrowed it down to a single operation! In
seems to be causing the issue, as when I eliminate this line, I get a properly sized window. Specifically, within this function, the line:
seems to trigger some re-evaluation of the window that causes the issue. Oddly, resizing with the GUI still works properly, so I'm guessing that operation uses another dispatch. I'll try to look into some of the callbacks, but hopefully this helps to get closer to a root cause. |
Ah, is it the |
Thanks for the detective work, I will have a look... But I think it makes sense, that this messes things up... |
|
Sorry, it's always annoying for me to work on osx issues, so I swiftly forgot about it altogether :D |
I tried that branch, but I had to revert all the other graphics packages back to |
The list of packages has changed:
|
Unfortunately not. Makie started to print a lot of "auto" though. ;-) |
oh yeah, thought printing auto would change it :-P |
I just submitted a pull request to the |
so you checked out the GLwindow thing, and no behaviour change!? i'm multiplying the resize resolution by a value, so it'd be weird if nothing at all happens. . |
nevermind :-D thanks @CrashBurnRepeat!! |
Works! |
Awesome, I will be so happy to close this out/see it closed out once everything is merged! |
A minor thing: If I create the window with
|
@mschauer, is this a breaking change for you? Overall though, I think it would help to go through the terminology in this package and straighten it out if needed. So far I've noticed |
No problem caused by that at all, I just reported it because it surprised me. |
increment patch number and delete REQUIRE
…04-07-15-10-34-300-151244898 CompatHelper: add new compat entry for "AbstractPlotting" at version "0.9"
This is a continuation of issue #207 on
GLVisualize.jl
, but I want to focus on its manifestation inMakiE
so as to use the newest interfaces. To provide a step-by-step of what I've done so far:This creates the following blank scene:

Using the
scene.data
dictionary, we can see the current parameters for the window and the frame:If I change the window size at all, the window seems to adjust to the correct size:

Not the most exciting visualization, but running the same Julia commands:
The main observation here is that in the first case,
window_area
matches the value ofwindow_size
, but after resizing the frame,window_area
matchesframebuffer_size
. I've tried to hunt down the logic for initializing and later updatingwindow_area
, since it seems to be the parameter linked to this behavior, but admittedly I'm kind of running in circles. Hopefully this is enough evidence to point to a culprit, and if there's more I can provide I'd be happy to do so.The text was updated successfully, but these errors were encountered: