lib/ppcurses/actions/BaseAction.rb in ppcurses-0.0.11 vs lib/ppcurses/actions/BaseAction.rb in ppcurses-0.0.12
- old
+ new
@@ -5,10 +5,14 @@
def setWindow(win)
@win = win
end
+ def xPadding()
+ return self.winPadding()
+ end
+
def winPadding()
return 2
end
def winWidth()
@@ -22,10 +26,10 @@
def createWindow()
@win = Window.new( winHeight(), winWidth(),
winPadding()/2, winPadding()/2)
@win.clear
@win.box("|", "-")
- @win.setpos(@win.cury()+1, self.winPadding())
+ @win.setpos(@win.cury()+1, xPadding() )
end
def show()
if @win.nil?
self.createWindow()