Skip to content

Main window cannot be as small (in height) as expected #2513

Closed

Description

@cpina

Describe the new feature

I'm an occasional long term sqlitebrowser user (since 2009). The minimum height that I can resize the main window is too big. I would like it to be possible to resize it smaller.

I think that the current size might cause problems in small resolutions (as it wouldn't fit all in one screen).

Additional info

Does this feature exist in another product or project? Please provide a link.

In older versions of sqlitebrowser (e.g. the packaged in Debian Buster: 3.10.1.). I remember that years ago it was possible as well.

Activity

  1. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    PR: #2514

  2. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    Besides PR #2514: the Main Window cannot be resized as small as I wanted.

    I've seen a ticket with Main Window UI bigger changes. I might have a look if I can make widgets resizeable in height smaller unless this is already in your pipeline or bigger changes might happen in this area.

  3. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    One more thing: using View -> Window Layout -> Simplify Window Layout makes it possible to resize as much as I want. I can't see how to make sqlitebrowser start with the simplified window layout: this would work well enough for me as well.

    Is there any way to change the default window layout?

    Thank you very much - and I forgot to say earlier thanks for this fantastic software!

  4. chrisjlocke commented on Dec 21, 2020

    @chrisjlocke
    Member

    If you close DB4S, isn't the layout saved? I've set the simplified layout, closed DB4S, and this simplified layout appears again when I restart. If I 'reset' the layout, close DB4S and restart it, the layout is as it should be (reset).
    What version of DB4S are you using?

  5. mgrojo commented on Dec 21, 2020

    @mgrojo
    Member

    We looked at this issue in a previous version in #1684, but it seems that the latest changes to the Remote dock have increased again the minimum size. I haven't tested the PR #2514, but if the scrollbar is added to a group of widgets instead of to a table list or similar, I think there should be a better solution in those terms (#1684) than adding a scrollbar. Note also that the layout can be adjusted in many ways, and it should be saved, like removing the Remote tab or rearranging it to overlap the other docked tabs. In that case the minimal height of both docks (top and bottom) do not add up:

    image

  6. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    If you close DB4S, isn't the layout saved? I've set the simplified layout, closed DB4S, and this simplified layout appears again when I restart. If I 'reset' the layout, close DB4S and restart it, the layout is as it should be (reset).
    What version of DB4S are you using?

    I'm using a compiled version from master: dafa873

    I've just deleted ~/.config/sqlitebrowser and tried again: no luck, I do the View -> Window Layout -> Simplify Window layout: it's simplified. Close and run again: it's the no-simplified layout.

    Which version are you using? I can try a quick "git bisect" if the saving layout used to work at some point.

    Thanks!

  7. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    We looked at this issue in a previous version in #1684, but it seems that the latest changes to the Remote dock have increased again the minimum size. I haven't tested the PR #2514, but if the scrollbar is added to a group of widgets instead of to a table list or similar, I think there should be a better solution in those terms (#1684) than adding a scrollbar. Note also that the layout can be adjusted in many ways, and it should be saved, like removing the Remote tab or rearranging it to overlap the other docked tabs. In that case the minimal height of both docks (top and bottom) do not add up:

    I've added two screenshots:

    sqlitebrowser-01
    sqlitebrowser-02

    The Current Database has many widgets that are not resizeable (and I don't think that they should) smaller than this (QToolBar, QTextEdit, etc.):

    sqlitebrowser-03

    So the QScrollArea seems an "easy" solution. Another one would be maybe to have User, Database and Branch all in one line? but I didn't want to change the layout that much.

  8. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    BTW, if the Simplified Layout would be saved I wouldn't (personally) worry too much about the minimum size of the "Current Database". I would have it almost all the time in Simplified Layout for the operations that I do. Thanks!

  9. chrisjlocke commented on Dec 21, 2020

    @chrisjlocke
    Member

    Which version are you using? I can try a quick "git bisect" if the saving layout used to work at some point.

    One of the nightlies from 9 Nov.

  10. cpina commented on Dec 21, 2020

    @cpina
    ContributorAuthor

    Which version are you using? I can try a quick "git bisect" if the saving layout used to work at some point.

    One of the nightlies from 9 Nov.

    And one more question: which operating system? (I'm testing it on Linux)

  11. chrisjlocke commented on Dec 21, 2020

    @chrisjlocke
    Member

    Windows.

  12. cpina commented on Jan 11, 2021

    @cpina
    ContributorAuthor

    The main window size is smaller (PR #2514)

    I've created a PR to solve the problem that the "Simplify Window Layout" was not saved: #2536

    Now people who prefer a simplified window layout with a smaller application height can change and leave it (without the PR it might have not been saved). I'll close this issue.

    Thanks for all the information here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions