Skip to content

Commit

Permalink
Move the statistics aerea to the right side of the editor
Browse files Browse the repository at this point in the history
Fixes #333
  • Loading branch information
xgouchet committed Oct 18, 2017
1 parent 7deca6c commit 8d89e1e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ReText/editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,10 @@ def __init__(self, editor):
def getAreaPosition(self, width, height):
viewport = self.editor.viewport()
rightSide = viewport.width() + self.editor.lineNumberAreaWidth()
return rightSide - width, viewport.height() - height
if globalSettings.documentStatsEnabled:
return rightSide - width, viewport.height() - (2 * height)
else:
return rightSide - width, viewport.height() - height

def getText(self):
template = '%d : %d'
Expand All @@ -535,8 +538,8 @@ def __init__(self, editor):

def getAreaPosition(self, width, height):
viewport = self.editor.viewport()
leftSide = self.editor.lineNumberAreaWidth()
return leftSide, viewport.height() - height
rightSide = viewport.width() + self.editor.lineNumberAreaWidth()
return rightSide - width, viewport.height() - height

def getText(self):
if not globalSettings.documentStatsEnabled:
Expand Down

0 comments on commit 8d89e1e

Please sign in to comment.