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

Set window width to account for minimum width required for visible rollups #1507

Merged
merged 1 commit into from
Nov 8, 2022

Conversation

srcejon
Copy link
Collaborator

@srcejon srcejon commented Nov 8, 2022

This patch updates RollupContents to calculate and set the minimum width required for the visible widgets.

The window resize in onWidgetRolled in channels and features has been updated to take this into account, so that the window should resize to respect the minimum size when a widget is rolled up/down.

As such, a few places where I'd hacked this in with hardcoded constants have been removed.

The practical result of this, is that a channel such as the Broadcast FM Demod, can be made a bit smaller when the RDS Rollup is not visible.

@f4exb f4exb merged commit b551a20 into f4exb:master Nov 8, 2022
@srcejon srcejon deleted the rollup_min_width branch December 22, 2022 10:42
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.

2 participants