Skip to content

Fix sizing for full screen while maximized#187

Open
boxrocket6803 wants to merge 3 commits intoFacepunch:masterfrom
boxrocket6803:fullscreen-margin
Open

Fix sizing for full screen while maximized#187
boxrocket6803 wants to merge 3 commits intoFacepunch:masterfrom
boxrocket6803:fullscreen-margin

Conversation

@boxrocket6803
Copy link
Contributor

@boxrocket6803 boxrocket6803 commented Jan 18, 2026

The edge of the viewport has been getting cut off in full screen for a while, the code to fix that was already there but it was in the wrong place so it got reset each frame.
FullScreenManager was also registering for editor events in the wrong place so the position and size of the widget wouldn't update on the first full screen of the session (it was registering when full screen was cleared, this just registers it in the constructor).
image

viewport no longer gets cut off when fullscreened in a maximized window
Copilot AI review requested due to automatic review settings January 18, 2026 17:51
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes two issues with the full screen editor functionality: viewport edges being cut off when the editor window is maximized, and event registration timing that prevented proper sizing on the first full screen of a session.

Changes:

  • Moved EditorEvent.Register from Clear() method to constructor to ensure events are registered at object creation
  • Relocated maximized window adjustment logic from SetWidget() to GetTargetPosition() and GetTargetSize() to prevent it from being reset each frame

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

1 participant