diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-02-05 19:48:23 +0100 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-02-05 19:48:23 +0100 |
commit | 94edefae44f840d3200dab78c9c150f5074fe4b1 (patch) | |
tree | 9a2f6bdeaad5407d7ffad743dc674f28157feda7 | |
parent | 32cc754077d354aa1b137a484dcf31292b6ec7a2 (diff) |
fix Scrollpad::MoveTo()
-rw-r--r-- | src/scrollpad.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/scrollpad.cpp b/src/scrollpad.cpp index 7f5cde4d..718989ce 100644 --- a/src/scrollpad.cpp +++ b/src/scrollpad.cpp @@ -124,6 +124,13 @@ void Scrollpad::MoveTo(size_t x, size_t y) { itsStartX = x; itsStartY = y; + if (itsBorder != brNone) + { + itsStartX++; + itsStartY++; + } + if (!itsTitle.empty()) + itsStartY += 2; } void Scrollpad::Resize(size_t width, size_t height) |