Skip to content

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

Merged
f4exb merged 1 commit intof4exb:masterfrom
srcejon:rollup_min_width
Nov 8, 2022
Merged

Set window width to account for minimum width required for visible rollups#1507
f4exb merged 1 commit intof4exb:masterfrom
srcejon:rollup_min_width

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