-
Notifications
You must be signed in to change notification settings - Fork 36.2k
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
qt: Ensure that ModalOverlay is resized properly #17968
qt: Ensure that ModalOverlay is resized properly #17968
Conversation
utACK f3bac3a |
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.
Unrelated but while we are here you can notice that if the window height is increased while the modal is hiding then it will stay a little visible like:
because the animation end value doesn't track the new height.
Honestly why not drop the animation and eventually make it a modal dialog instead of being embedded?
With this PR? |
@hebasto here and master. You can check more easily by increasing the animation duration. |
f3bac3a
to
14f68ec
Compare
Reworked and rebased.
Fixed. |
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.
Code review ACK 14f68ec.
14f68ec
to
4fc1df4
Compare
Updated 14f68ec -> 4fc1df4 (pr17968.02 -> pr17968.03, diff):
|
Code review ACK 4fc1df4. |
utACK 4fc1df4 |
4fc1df4 qt: Track QEvent::Resize during animation (Hennadii Stepanov) Pull request description: In certain circumstances the `ModalOverlay` widget is not sized properly: - bitcoin#17269 - bitcoin#17967 - bitcoin#17968 (review) On master (f018d0c) this bug looks like this: ![DeepinScreenshot_bitcoin-qt_20200120193402](https://user-images.githubusercontent.com/32963518/72748165-298b2a80-3bbf-11ea-810d-2966f08e496a.png) With this PR the wallet frame looks ok: ![DeepinScreenshot_bitcoin-qt_20200120195241](https://user-images.githubusercontent.com/32963518/72748388-c64dc800-3bbf-11ea-8875-1ba1899b3513.png) Fix bitcoin#17269 Fix bitcoin#17967 ACKs for top commit: promag: Code review ACK 4fc1df4. jonasschnelli: utACK 4fc1df4 Tree-SHA512: b5d303fbc139c9383cd22edecba05e51b0d6115631aeb7d4474e973e7250a84019c11c0e41b5200e4d9ab10e17908774b45234317535857dc5314c3c28614ad4
Summary: > In certain circumstances the ModalOverlay widget is not sized properly: > With this PR the wallet frame looks ok This is a backport of [[bitcoin/bitcoin#17968 | core#17968]] Test Plan: From core#17967 Run with -regtest, generate some blocks (200 in my case), then quit. Remove rev00000.dat file to trigger an error. Run with -regtest and in the dialog "Do you want to rebuild the block database now?" click "OK". Reviewers: #bitcoin_abc, majcosta Reviewed By: #bitcoin_abc, majcosta Differential Revision: https://reviews.bitcoinabc.org/D9926
In certain circumstances the
ModalOverlay
widget is not sized properly:On master (f018d0c) this bug looks like this:
With this PR the wallet frame looks ok:
Fix #17269
Fix #17967