-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Conversation
Thanks for opening this pull request! |
@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! |
There was a problem hiding this 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.
@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
There was a problem hiding this 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.
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 alayout
method where it can be called from bothactivate
and the existingheightProperty
listener. The same approach is taken here.