aboutsummaryrefslogtreecommitdiff
path: root/dw/ruler.hh
diff options
context:
space:
mode:
authorSebastian Geerken <devnull@localhost>2015-01-08 12:31:53 +0100
committerSebastian Geerken <devnull@localhost>2015-01-08 12:31:53 +0100
commit428094b178eb03d8e500c81837caac402e4b138c (patch)
tree353456467cadd4c258b8a8c3f306d817925500b6 /dw/ruler.hh
parentd37efc2feb2b387d879962f4ef3fed2b9bf5a5e9 (diff)
RegardingBorder; fixes problems with <hr/>.
Diffstat (limited to 'dw/ruler.hh')
-rw-r--r--dw/ruler.hh13
1 files changed, 9 insertions, 4 deletions
diff --git a/dw/ruler.hh b/dw/ruler.hh
index 63662383..cd4f63f4 100644
--- a/dw/ruler.hh
+++ b/dw/ruler.hh
@@ -1,7 +1,7 @@
#ifndef __RULER_HH__
#define __RULER_HH__
-#include "core.hh"
+#include "regardingborder.hh"
namespace dw {
@@ -10,10 +10,15 @@ namespace dw {
*
* This is really an empty widget, the HTML parser puts a border
* around it, and drawing is done in dw::core::Widget::drawWidgetBox.
- * The only remarkable point is that the HAS_CONTENT flag is
- * cleared.
+ *
+ * Ruler implements RegardingBorder; this way, it is simpler to fit
+ * the ruler exactly within the space between floats. Currently, the
+ * drawn area of the ruler is too large (but most of the superfluous
+ * part is hidden by the floats); this problem will not solved but in
+ * "dillo_grows", where RegardingBorder is a sub class of
+ * OOFAwareWidget.
*/
-class Ruler: public core::Widget
+class Ruler: public RegardingBorder
{
protected:
void sizeRequestImpl (core::Requisition *requisition);