Commit 5c44509d by ramdayalmunda

tab width size fix on list items

parent 6621c0a7
...@@ -344,13 +344,16 @@ var ADocEditor = function (customConfig) { ...@@ -344,13 +344,16 @@ var ADocEditor = function (customConfig) {
lineObj.plainContent = dataBlock.plainContent.slice(lineObj.charStartIndex, lineObj.charEndIndex + 1) lineObj.plainContent = dataBlock.plainContent.slice(lineObj.charStartIndex, lineObj.charEndIndex + 1)
lines.push(lineObj) lines.push(lineObj)
lineObj = new getLineObj() lineObj = new getLineObj()
maxLineWidth = config.pageSetup.pxWidth - (config.format.margin * pxMmRatio * 2)
lineObj.maxLineWidth = maxLineWidth lineObj.maxLineWidth = maxLineWidth
lineObj.maxFontSize = style.fontSize lineObj.maxFontSize = style.fontSize
if (dataBlock.type == 1) lineObj.tabWidth = tabWidth if (dataBlock.type == 1){
else lineObj.tabWidth = 0 lineObj.tabWidth = tabWidth
if (dataBlock.type == 1) lineObj.tabCount = dataBlock.tabCount lineObj.tabCount = dataBlock.tabCount
else lineObj.tabCount = 0 }else{
maxLineWidth = config.pageSetup.pxWidth - (config.format.margin * pxMmRatio * 2)
lineObj.tabWidth = 0
lineObj.tabCount = 0
}
lineObj.charStartIndex = wordEndIndex + 1 lineObj.charStartIndex = wordEndIndex + 1
lineObj.charEndIndex = wordEndIndex + 1 lineObj.charEndIndex = wordEndIndex + 1
tempLineWidth = tempWordWidth tempLineWidth = tempWordWidth
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment