diff options
author | Sebastian Geerken <devnull@localhost> | 2014-05-29 23:30:00 +0200 |
---|---|---|
committer | Sebastian Geerken <devnull@localhost> | 2014-05-29 23:30:00 +0200 |
commit | f9ce17839903ef10002f19a0c758dfeb828ae11a (patch) | |
tree | fd233d84a28d7214418624c548ad76ec6af39944 /dw/ruler.cc | |
parent | e1b61ef1378520a68cb288b6b3c322f70f2a6a41 (diff) |
Removed size hints.
Diffstat (limited to 'dw/ruler.cc')
-rw-r--r-- | dw/ruler.cc | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/dw/ruler.cc b/dw/ruler.cc index 7969e3c0..3599c32a 100644 --- a/dw/ruler.cc +++ b/dw/ruler.cc @@ -30,25 +30,16 @@ Ruler::Ruler () { setFlags (USES_HINTS); unsetFlags (HAS_CONTENTS); - availWidth = 0; } void Ruler::sizeRequestImpl (core::Requisition *requisition) { - requisition->width = - lout::misc::max (availWidth, getStyle()->boxDiffWidth ()); + requisition->width = lout::misc::max (getAvailWidth (), + getStyle()->boxDiffWidth ()); requisition->ascent = getStyle()->boxOffsetY (); requisition->descent = getStyle()->boxRestHeight (); } -void Ruler::setWidth (int width) -{ - if (availWidth != width) { - availWidth = width; - queueResize (0, false); - } -} - bool Ruler::isBlockLevel () { return true; |