nemomobile-ux / qtquickcontrols-nemo

Apache License 2.0
1 stars 4 forks source link

is it a binding loop? #3

Closed jmlich closed 3 years ago

jmlich commented 3 years ago

The drawer.height is not correct when the drawer.height: parent.height set.

In the same time, there is a Binding:

        Binding on height {
            restoreMode: Binding.RestoreBinding
            value: drawer.height
            when: appWindow.isUiPortrait
        }

I am not sure what how the variable is set, but after proposed change, the behaviour in landscape mode changes from broken layout into something sane:

Screenshot_manjaro_2021-06-02_21:34:39

Screenshot_manjaro_2021-06-02_21:32:12

I believe the portrait mode behaves better as well