aboutsummaryrefslogtreecommitdiff
path: root/dw/textblock.cc
diff options
context:
space:
mode:
authorJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-16 20:21:16 +0100
committerJohannes Hofmann <Johannes.Hofmann@gmx.de>2008-12-16 20:21:16 +0100
commite102392a954dd742c2a307b0c1cc91ed231fd414 (patch)
treeba6b8a5f6819bf0e2583a6dc59f1213b9ca885a7 /dw/textblock.cc
parenta5a5427fff40bce8affc60c0eb7213d9c0c06dd3 (diff)
fix textblocks with padding
Diffstat (limited to 'dw/textblock.cc')
-rw-r--r--dw/textblock.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/dw/textblock.cc b/dw/textblock.cc
index 3487c8f1..2f5c66ae 100644
--- a/dw/textblock.cc
+++ b/dw/textblock.cc
@@ -1077,8 +1077,8 @@ void Textblock::calcWidgetSize (core::Widget *widget, core::Requisition *size)
widget->setAscent (availAscent);
widget->setDescent (availDescent);
widget->sizeRequest (size);
- size->ascent -= widget->getStyle()->margin.top;
- size->descent -= widget->getStyle()->margin.bottom;
+// size->ascent -= widget->getStyle()->margin.top;
+// size->descent -= widget->getStyle()->margin.bottom;
} else {
/* TODO: Use margin.{top|bottom} here, like above.
* (No harm for the next future.) */