[bisq-network/bisq] [WIP] Limit initial window size on application launch (#1945)

Devin Bileck notifications at github.com
Wed Nov 21 07:51:09 UTC 2018


**Problem:** When launching Bisq on my Windows 10 laptop, the application window is larger than the usable screen bounds causing the title bar of the application to be mostly off the screen. This is an annoyance and requires me to move and resize the window so that it is within the screen bounds.

**Cause:** My laptop has a 13-inch 1920x1080 display and uses 150% display scaling. As a result, it has a usable resolution (maximum screen bounds) of 1280x660 (accounting for the height of the Windows task bar). When launching the application, it sets the initial window height to 710px, which exceeds my usable screen height.

**Fix:** When launching the application, prevent the initial window size from exceeding the maximum available bounds. These bounds account for objects in the native windowing system such as task bars and menu bars.

**Note: This is a work in progress as I have yet to test it on anything other than Windows (I plan to verify against Ubuntu). Nor have I verified a multi-display setup. But I still wanted to put this PR together in case anyone is able to verify it especially on Mac which I do not have available to test.**
You can view, comment on, or merge this pull request online at:

  https://github.com/bisq-network/bisq/pull/1945

-- Commit Summary --

  * Limit initial window size on application launch

-- File Changes --

    M desktop/src/main/java/bisq/desktop/app/BisqApp.java (22)
    M desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartView.java (4)
    M desktop/src/main/java/bisq/desktop/util/Layout.java (6)

-- Patch Links --

https://github.com/bisq-network/bisq/pull/1945.patch
https://github.com/bisq-network/bisq/pull/1945.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/pull/1945
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20181120/22fb813a/attachment.html>


More information about the bisq-github mailing list