Code review comment for lp:~pkunal-parmar/ubuntu-calendar-app/Refactoring

Revision history for this message
Olivier Tilloy (osomon) wrote :

807 + onStateChanged: {
808 + if( state == "EXPANDED") {
809 + monthView.compressed = true
810 + yBehavior.enabled = true
811 + } else if( state == "COMPRESSED") {
812 + monthView.compressed = false
813 + }
814 }

Instead of the above, inside monthView, just set the value of 'compressed' to be (eventView.state == "EXPANDED"), and the same for the value of 'enabled' inside yBehavior.

review: Needs Fixing

« Back to merge proposal