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

Binding loop on InformationPage ScrollView contentHeight when appMode is "MOBILE" #339

Closed
jarolrod opened this issue May 31, 2023 · 2 comments
Labels
Bug Something isn't working good first issue Good for newcomers
Milestone

Comments

@jarolrod
Copy link
Member

jarolrod commented May 31, 2023

Current behaviour

The InformationPage's continueButton is special cased to behave differently between mobile and desktop, as defined in the design file. #171 introduced this functionality. And #194 made it work with the new InformationPage control and it's scrollView. The logic on the scrollViews contentHeight implemented in 194 was faulty, and leads to a binding loop. This was hidden by the fact that we can't see terminal output when running the android app.

Expected behaviour

No binding loop.

Steps to reproduce

Apply this patch, then run the gui so this logic is ran when on desktop:

diff --git a/src/qml/controls/InformationPage.qml b/src/qml/controls/InformationPage.qml
index e652de666..c616bcf2a 100644
--- a/src/qml/controls/InformationPage.qml
+++ b/src/qml/controls/InformationPage.qml
@@ -111,7 +111,7 @@ Page {
 
     states: [
         State {
-            name: "MOBILE"
+            name: "DESKTOP"
             AnchorChanges {
                 target: continueButton
                 anchors.top: undefined
@@ -131,7 +131,7 @@ Page {
             }
         },
         State {
-            name: "DESKTOP"
+            name: "MOBILE"
             AnchorChanges {
                 target: continueButton
                 anchors.top: information.bottom

Relevant log output

$ ./src/qt/bitcoin-qt -signet -resetguisettings
qrc:/qml/controls/InformationPage.qml:46:5: QML ScrollView: Binding loop detected for property "contentHeight"

How did you obtain Bitcoin Core

Compiled from source

What version of Bitcoin Core are you using?

master

Operating system and version

Ubuntu 22.04.2 LTS x86_64

Machine specifications

No response

@jarolrod jarolrod added the Bug Something isn't working label May 31, 2023
@jarolrod jarolrod added this to the v1.0 milestone May 31, 2023
@jarolrod
Copy link
Member Author

cc @johnny9

@jarolrod jarolrod added the good first issue Good for newcomers label May 31, 2023
@hebasto hebasto modified the milestones: v1.0, v1.1 Jun 6, 2023
@jarolrod
Copy link
Member Author

fixed by #352

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants