Retain previous screen sizing on startup (LBRY starts maximized) #338

Closed
opened 2017-07-07 18:30:44 +02:00 by tzarebczan · 7 comments
tzarebczan commented 2017-07-07 18:30:44 +02:00 (Migrated from github.com)

The Issue

When LBRY is run, the app always goes into full screen mode. We've had a user that mentioned this should not happen or should be configurable. Is it possible to remember the previous window size upon next start up?

If this is the intended functionality to maximize Home page content viewing, so feel free to close.

Steps to reproduce

  1. Launch LBRY
  2. Goes full screen

Expected behaviour

LBRY should either not go in full screen mode or remember previous app close window size

Actual behaviour

Always goes into full screen mode

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system: Windows

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue When LBRY is run, the app always goes into full screen mode. We've had a user that mentioned this should not happen or should be configurable. Is it possible to remember the previous window size upon next start up? If this is the intended functionality to maximize Home page content viewing, so feel free to close. ### Steps to reproduce 1. Launch LBRY 2. Goes full screen ### Expected behaviour LBRY should either not go in full screen mode or remember previous app close window size ### Actual behaviour Always goes into full screen mode ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279/lbryapi' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: - LBRY App version: - LBRY Installation ID: - Operating system: Windows ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
ghost commented 2017-07-08 06:33:35 +02:00 (Migrated from github.com)

Yes, this is annoying when you have a large screen. Recalling window size is an excellent solution. Thanks for entering this.

Yes, this is annoying when you have a large screen. Recalling window size is an excellent solution. Thanks for entering this.
tzarebczan commented 2017-07-10 11:39:32 +02:00 (Migrated from github.com)

Actually, on Windows it does seem to keep the window size to the setting which LBRY was closed. Can someone confirm on Mac? I'll check Ubuntu later.

Actually, on Windows it does seem to keep the window size to the setting which LBRY was closed. Can someone confirm on Mac? I'll check Ubuntu later.
kauffj commented 2017-07-10 14:36:01 +02:00 (Migrated from github.com)

Maximize is called on every run. It's called here: fce702f737/app/main.js (L155)

To address this ticket, size should be saved locally on close and set in the above linked function.

Maximize is called on every run. It's called here: https://github.com/lbryio/lbry-app/blob/fce702f737909d21e9b7581051690f356a82bd56/app/main.js#L155 To address this ticket, size should be saved locally on close and set in the above linked function.
akinwale commented 2017-07-13 18:04:08 +02:00 (Migrated from github.com)

Should the saved width and height override the minWidth and minHeight properties respectively?

Should the saved width and height override the minWidth and minHeight properties respectively?
ghost commented 2017-07-13 18:26:12 +02:00 (Migrated from github.com)

If I were coding this, I'd make sure there was a minimum, because I have seen app windows that became so small by accident, they couldn't be made larger. The minimum could be 800x600 if the remembered size was too small. That size window is actually usable, if not optimal.

If I were coding this, I'd make sure there was a minimum, because I have seen app windows that became so small by accident, they couldn't be made larger. The minimum could be 800x600 if the remembered size was too small. That size window is actually usable, if not optimal.
kauffj commented 2017-07-13 21:08:30 +02:00 (Migrated from github.com)

Agreed, please retain the minimum @akinwale.

Agreed, please retain the minimum @akinwale.
tzarebczan commented 2017-12-20 20:14:15 +01:00 (Migrated from github.com)

Per suggestion from a community member: https://github.com/mawie81/electron-window-state

Per suggestion from a community member: https://github.com/mawie81/electron-window-state
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#338
No description provided.