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

Size the offer book on window activation #4031

Merged
merged 1 commit into from Mar 18, 2020
Merged

Size the offer book on window activation #4031

merged 1 commit into from Mar 18, 2020

Conversation

ghost
Copy link

@ghost ghost commented Mar 6, 2020

Fixes #4030

Currently the offer book tables are only being sized when the window proportions change. However if the window is made bigger before the offer book is opened, then the tables are not resized from their default.

Other windows (for example Market -> Trades) solve this by make a sizing call in the activate method. In order to do this the sizing code is separated into a layout method where it can be called from both activate and the existing heightProperty listener. The same approach is taken here.

@boring-cyborg
Copy link

boring-cyborg bot commented Mar 6, 2020

Thanks for opening this pull request!

Please check out our contributor checklist and check if Travis or Codacy found any issues with your PR. Also make sure your commits are signed, and that you applied Bisq's code style and formatting.

A maintainer will add an is:priority label to your PR if it is up for compensation. Please see our Bisq Q1 2020 Update post for more details.

@ripcurlx
Copy link
Contributor

@jmacxx Thanks for your first PR! I'll review your PR now, but please adapt and force push your commit message based on bisq-network/style#9. I don't want to be picky, but I think it is good to follow this guideline for your future contributions. Thanks!

Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NACK

ACK from functionality and code changes. As soon as you have updated the commit message #4031 (comment) I'm happy to merge your PR.

@ghost ghost requested a review from ripcurlx March 17, 2020 21:01
ripcurlx
ripcurlx previously approved these changes Mar 18, 2020
@ripcurlx
Copy link
Contributor

@jmacxx Please sign your commit. Thanks!

Currently the offer book tables are only being sized when the window
proportions change. However if the window is made bigger before the
offer book is opened, then the tables are not resized from their
default.

Other windows (for example Market -> Trades) solve this by make a
sizing call in the activate method.  In order to do this the sizing
code is separated into a layout method where it can be called from
both activate and the existing heightProperty listener. The same
approach is taken here.

Fixes #4030
Copy link
Contributor

@ripcurlx ripcurlx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Tested it on Regtest.

@ripcurlx ripcurlx merged commit 89cfb34 into bisq-network:master Mar 18, 2020
@ripcurlx ripcurlx added this to the v1.3.0 milestone Apr 1, 2020
@ghost ghost mentioned this pull request Apr 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Offer Book screen does not reflow contents as expected
1 participant