summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2009-02-05 19:48:23 +0100
committerAndrzej Rybczak <electricityispower@gmail.com>2009-02-05 19:48:23 +0100
commit94edefae44f840d3200dab78c9c150f5074fe4b1 (patch)
tree9a2f6bdeaad5407d7ffad743dc674f28157feda7
parent32cc754077d354aa1b137a484dcf31292b6ec7a2 (diff)
fix Scrollpad::MoveTo()
-rw-r--r--src/scrollpad.cpp7
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)