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

Toggle rotateLayout automatically to support vertical outputs #169

Merged
merged 5 commits into from
Jun 1, 2024

Conversation

feryllt
Copy link
Contributor

@feryllt feryllt commented May 17, 2024

Automatically toggle "Rotate layout" if desktop/output width is less than its height. This makes layout engines to split along the major output axis first. For example, vertical outputs will first split vertically when using btree engine.

The change honors the "Rotate layout" setting in the UI by toggling its value instead of overriding it.

A new UI setting "Auto rotate layout" has been added and enabled by default.

Flip rotateLayout setting when engine is created if output width is less than height.
For newly introduced variable, use a name that is consistent with the rest of the code.
@feryllt
Copy link
Contributor Author

feryllt commented May 18, 2024

Core functionality change is in file src/driver/index.ts commit cc7af38.

autoRotateLayout is a global option that changes the per-output rotateLayout setting at driver creation phase. It has no meaning as per-output setting, hence removed.
@zeroxoneafour zeroxoneafour merged commit 515f699 into zeroxoneafour:master Jun 1, 2024
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.

None yet

2 participants