* word_wrap.js: Word wrapping functionality in it's own module

* Message.getQuoteLines()
This commit is contained in:
Bryan Ashby 2015-09-15 21:55:10 -06:00
parent a320a05c99
commit 4cba6f4c10
4 changed files with 146 additions and 77 deletions

View file

@ -607,8 +607,13 @@ function FullScreenEditorModule(options) {
// ...should not be too bad to do at all
// ...probably do want quote markers in place here though, e.g. " Nu> Said some things"
// ...this could be handled via message.getQuoteLines(...) => []
self.viewControllers.quoteBuilder.getView(3).setItems(['Someone said some shit', 'then they said more shit', 'and what not...', 'hurp durp']);
//self.viewControllers.quoteBuilder.getView(3).setItems(['Someone said some shit', 'then they said more shit', 'and what not...', 'hurp durp']);
var quoteView = self.viewControllers.quoteBuilder.getView(3);
var quoteWidth = quoteView.dimens.width;
console.log(quoteWidth)
var quoteLines = self.replyToMessage.getQuoteLines(quoteWidth);
console.log(quoteLines)
quoteView.setItems(quoteLines);
callback(null);
},
function setViewFocus(callback) {