Skip to content

Fix: Layout on screen scale don't adapt when the window is resized - #140

Closed
rubenberttpingol wants to merge 1 commit into
developfrom
fix/layout_scale_when_window_dimension_change
Closed

rubenberttpingol wants to merge 1 commit into
developfrom
fix/layout_scale_when_window_dimension_change

Conversation

@rubenberttpingol

Copy link
Copy Markdown
Contributor

@dasgarner dasgarner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am not sure about this one - adapting to size changes mid playback is likely to be confusing?

The original issue is that the window doesn't open at the right size (according to the width/height specified in settings).

The fix here seems to be about rescaling, which I don't think is needed.

I would expect a change in screen size to completely tear down and recreate XLR at the right size.

@rubenberttpingol

Copy link
Copy Markdown
Contributor Author

This is actually a side effect on the XLR side. But the screen size change happens in the consumer (in this case, electron player). Without this change, when the screen size change, the rendered layout will adjust on the next cycle. There's an accompanied change of this from electron.

@rubenberttpingol

Copy link
Copy Markdown
Contributor Author

The actual direct fix is here xibosignage/electron-player#248

@dasgarner

Copy link
Copy Markdown
Member

I don't think we should try and dynamically resize. Changing at the next cycle, or even on restart, would be fine.

@rubenberttpingol

Copy link
Copy Markdown
Contributor Author

Alright, so this change is not needed then. I'll have this closed.

@rubenberttpingol

Copy link
Copy Markdown
Contributor Author

Closing as not necessary.

@rubenberttpingol
rubenberttpingol deleted the fix/layout_scale_when_window_dimension_change branch October 1, 2026 11:49
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 1, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants