summaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index e7c49f27..21de1991 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -624,7 +624,9 @@ void Textblock::sizeAllocateImpl (core::Allocation *allocation)
core::Allocation childAllocation;
core::Allocation *oldChildAllocation;
- if (allocation->width != this->allocation.width) {
+ if (allocation->x != this->allocation.x ||
+ allocation->y != this->allocation.y ||
+ allocation->width != this->allocation.width) {
redrawY = 0;
DBG_OBJ_SET_NUM ("redrawY", redrawY);
}