update styling and clean up demos
This commit is contained in:
parent
5894667b41
commit
63551228ee
20 changed files with 235 additions and 212 deletions
|
|
@ -1574,7 +1574,6 @@ var EditSession = function(text, mode) {
|
|||
* @param {Number} desiredLimit The new wrap limit
|
||||
* @returns {Boolean}
|
||||
*
|
||||
*
|
||||
* @private
|
||||
**/
|
||||
this.adjustWrapLimit = function(desiredLimit, $printMargin) {
|
||||
|
|
@ -1602,7 +1601,7 @@ var EditSession = function(text, mode) {
|
|||
if (max)
|
||||
wrapLimit = Math.min(max, wrapLimit);
|
||||
|
||||
return wrapLimit;
|
||||
return wrapLimit;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
@ -1617,11 +1616,10 @@ var EditSession = function(text, mode) {
|
|||
* Sets the line length for soft wrap in the editor. Lines will break
|
||||
* at a minimum of the given length minus 20 chars and at a maximum
|
||||
* of the given number of chars.
|
||||
* @param {number} limit The maximum line length in chars, for soft
|
||||
* wrapping lines.
|
||||
* @param {number} limit The maximum line length in chars, for soft wrapping lines.
|
||||
*/
|
||||
this.setWrapLimit = function (limit) {
|
||||
this.setWrapLimitRange(limit - 20, limit);
|
||||
this.setWrapLimitRange(limit, limit);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue