* Fix word wrap bug introduced prior -- use 'expand' not 'expandTabs'

* Notes on better access of views by ID
* Work on apply process a bit
* Replies can now be saved
This commit is contained in:
Bryan Ashby 2015-09-20 01:29:07 -06:00
parent a6d00b05a7
commit b15d9a0bf8
7 changed files with 71 additions and 7 deletions

View file

@ -502,6 +502,7 @@ function MultiLineEditTextView(options) {
width : width,
tabHandling : tabHandling || 'expand',
tabWidth : self.tabWidth,
tabChar : '\t',
});
};
@ -545,7 +546,10 @@ function MultiLineEditTextView(options) {
var wrapped;
for(var i = 0; i < text.length; ++i) {
wrapped = self.wordWrapSingleLine(text[i], 'expandTabs', self.dimens.width).wrapped;
wrapped = self.wordWrapSingleLine(
text[i], // input
'expand', // tabHandling
self.dimens.width).wrapped;
for(var j = 0; j < wrapped.length - 1; ++j) {
self.textLines.splice(index++, 0, { text : wrapped[j] } );