Merge lp:~samertm/ubuntu-calendar-app/fixes-1272625 into lp:ubuntu-calendar-app

Proposed by Samer Masterson
Status: Merged
Approved by: David Planella
Approved revision: 189
Merged at revision: 190
Proposed branch: lp:~samertm/ubuntu-calendar-app/fixes-1272625
Merge into: lp:ubuntu-calendar-app
Diff against target: 43 lines (+4/-4)
2 files modified
DayView.qml (+3/-3)
WeekView.qml (+1/-1)
To merge this branch: bzr merge lp:~samertm/ubuntu-calendar-app/fixes-1272625
Reviewer Review Type Date Requested Status
Ubuntu Phone Apps Jenkins Bot continuous-integration Approve
David Planella Approve
Victor Thompson (community) Approve
Review via email: mp+203448@code.launchpad.net

Commit message

* Changes the height of the frame to fit the window.
* Moves "anchors.fill: parent" into the Column scope in
  DayView.qml to keep it consistent with WeekView.qml

Description of the change

Changes the height so that it's relative to the top of the view path, so that it will still be correct if the heights of the other views are changed.

There is no need for spacing because "anchors.fill: parent" was moved from the Item scope to the Column scope in DayView.qml. This keeps the anchors in DayView and WeekView consistent.

To post a comment you must log in.
Revision history for this message
Victor Thompson (vthompson) wrote :

Looks right on my device. Nice work!

review: Approve
Revision history for this message
David Planella (dpm) wrote :

Looks good to me too, thanks!

review: Approve
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'DayView.qml'
2--- DayView.qml 2013-10-16 14:36:51 +0000
3+++ DayView.qml 2014-01-28 01:57:06 +0000
4@@ -7,8 +7,6 @@
5 id: root
6 objectName: "DayView"
7
8- anchors.fill: parent
9-
10 property var currentDay: new Date()
11
12 Column {
13@@ -18,6 +16,8 @@
14 width: parent.width; height: parent.height
15 spacing: units.gu(1)
16
17+ anchors.fill: parent
18+
19 ViewHeader{
20 id: viewHeader
21 date: currentDay
22@@ -47,7 +47,7 @@
23 preferredHighlightEnd: 0.5
24
25 width: parent.width
26- height: column.height - viewHeader.height - dayHeader.height
27+ height: column.height - dayViewPath.y
28
29 path: Path {
30 startX: -(dayViewPath.width/1.75); startY: dayViewPath.height/2
31
32=== modified file 'WeekView.qml'
33--- WeekView.qml 2014-01-09 23:15:57 +0000
34+++ WeekView.qml 2014-01-28 01:57:06 +0000
35@@ -34,7 +34,7 @@
36 property var weekStart: weekViewPath.visibleWeek.addDays(-7)
37
38 width: parent.width
39- height: root.height - viewHeader.height - weekHeader.height
40+ height: root.height - weekViewPath.y
41
42 onNextItemHighlighted: {
43 nextWeek();

Subscribers

People subscribed via source and target branches

to status/vote changes: