nvda
365f4f0c - Use automatic width for License Agreement text (#13868)

Commit
3 years ago
Use automatic width for License Agreement text (#13868) Summary of the issue: The width of the License Agreement was fixed, however the outer dialog scales with DPI. This causes inconsistent behaviour for the License Agreement text sizing within the Launcher dialog. Examples refer to a machine with high DPI and 200% scaling For example, the width of the license agreement text for my machine display setting is roughly 2/3rds of the dialog. Additionally, the GPL2 license text is manually wrapped wraps at different line lengths, with 80 being the most common. Longer lines exist for custom changes to the GPL2 license. Description of user facing changes Makes the width of the license text dialog fit 80 characters of text comfortably. Also changes the height of the dialog by ~100px (scaled) for readability. Description of development approach Get a the width of a line of license text by creating and destroying a hidden text control. Use that to set the scaled size of the license text.
Author
Parents
Loading