Repository navigation
Resize panel container after context is created - #558
Merged
Merged
Conversation
Warchamp7
approved these changes
Oct 28, 2026
RytoEX
reviewed
Oct 28, 2026
Work around a race condition where the call to Resize() could occur before the browser context existed, resulting in the default size 100x30 until next manual resize of the parent window or dock. The wrapper container and Resize() function are only used on non-macOS platforms.
RytoEX
force-pushed
the
resize-panel-on-init
branch
from
October 28, 2026 19:37
2cbd9ac to
e71644f
Compare
RytoEX
approved these changes
Oct 28, 2026
RytoEX
left a comment
Member
There was a problem hiding this comment.
Fixed up the commit message. LGTM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Work around a race condition where the call to Resize() could occur before the browser context existed, resulting in the default size 100x30 until next manual resize of the parent window or dock.
The wrapper container and Resize() function are only used on non-macOS platforms.
Motivation and Context
Browser docks should always reflect the size of the dock they're in.
I've been able to reproduce this on Linux about 70% of the time.
GammaRay insight:
r1ch was able to reproduce this pretty consistently on Windows, though I have not.
Note: This does not fix a separate issue where the dock doesn't immediately resize to fit the parent container when docking on Linux.
How Has This Been Tested?
Repeatedly relaunch OBS on Windows and Linux. For the latter, run in X11 mode to get access to browser docks.
Types of changes
Checklist: