← Back to team overview

ubuntu-touch-coreapps-reviewers team mailing list archive

[Merge] lp:~mzanetti/reminders-app/fix-renderwidth into lp:reminders-app

 

Michael Zanetti has proposed merging lp:~mzanetti/reminders-app/fix-renderwidth into lp:reminders-app.

Commit message:
Fix setting the note's renderwidth

Requested reviews:
  Ubuntu Reminders app developers (reminders-app-dev)
Related bugs:
  Bug #1452898 in Ubuntu Reminders app: "Photos sometimes appear pixellated in edit note view"
  https://bugs.launchpad.net/reminders-app/+bug/1452898

For more details, see:
https://code.launchpad.net/~mzanetti/reminders-app/fix-renderwidth/+merge/258564
-- 
Your team Ubuntu Reminders app developers is requested to review the proposed merge of lp:~mzanetti/reminders-app/fix-renderwidth into lp:reminders-app.
=== modified file 'src/app/qml/ui/EditNoteView.qml'
--- src/app/qml/ui/EditNoteView.qml	2015-04-27 17:24:33 +0000
+++ src/app/qml/ui/EditNoteView.qml	2015-05-07 21:33:33 +0000
@@ -37,6 +37,7 @@
                 notebookSelector.selectedIndex = i;
             }
         }
+        note.renderWidth = noteTextArea.width - noteTextArea.textMargin * 2
     }
 
     signal exitEditMode(var note)
@@ -84,7 +85,7 @@
         target: noteTextArea
         onWidthChanged: {
             note.richTextContent = noteTextArea.text;
-            note.renderWidth = noteTextArea.width - noteTextArea.textMargin
+            note.renderWidth = noteTextArea.width - noteTextArea.textMargin * 2
         }
     }
 


Follow ups