Index: trunk/FACT++/gui/HtmlDelegate.cc
===================================================================
--- trunk/FACT++/gui/HtmlDelegate.cc	(revision 10474)
+++ trunk/FACT++/gui/HtmlDelegate.cc	(revision 10475)
@@ -7,11 +7,22 @@
 {
     QTextDocument doc;
+    doc.setPageSize(option.rect.size());
     doc.setHtml(index.data().toString());
+
+    // === This can be used if a scrolling is needed ===
+    // painter->save();
+    // painter->translate(option.rect.topLeft());
+    // QRect r(QPoint(0, 0), option.rect.size());
+    // doc.drawContents(painter, r);
+    // painter->restore();
+    // drawFocus(painter, option, option.rect);
+
     doc.drawContents(painter, option.rect);
 }
 
-QSize HtmlDelegate::sizeHint(const QStyleOptionViewItem &/*option*/, const QModelIndex &index) const
+QSize HtmlDelegate::sizeHint(const QStyleOptionViewItem &option, const QModelIndex &index) const
 {
     QTextDocument doc;
+    doc.setPageSize(option.rect.size());
     doc.setHtml(index.data().toString());
     return doc.size().toSize();
