summaryrefslogtreecommitdiffstats
path: root/knotes
diff options
context:
space:
mode:
Diffstat (limited to 'knotes')
-rw-r--r--knotes/knote.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/knotes/knote.cpp b/knotes/knote.cpp
index e68c8ca29..4b0a9172c 100644
--- a/knotes/knote.cpp
+++ b/knotes/knote.cpp
@@ -1214,7 +1214,7 @@ void KNote::updateLayout()
if( m_tool ) {
m_tool->setGeometry(
contentsRect().x(),
- contentsRect().bottom() - m_tool->height() + 1,
+ contentsRect().bottom() - (m_tool->isHidden() ? 0 : m_tool->height()) + 1,
contentsRect().width(),
m_tool->height()
);