diff options
author | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-06 10:37:14 +0200 |
---|---|---|
committer | Rodrigo Arias Mallo <rodarima@gmail.com> | 2024-10-13 13:36:47 +0200 |
commit | 7bade294672a638bcd1b0451333be5bb948cbbf7 (patch) | |
tree | a44310f1ba962197bdda543a19d32c08b7929534 /dw/layout.cc | |
parent | 05094b91a070c0a498870a473b37732929289ca1 (diff) |
Add support for left scrollbar
Implements support for placing the vertical scrollbar on the left side
by setting scrollbar_on_left=YES on dillorc. By default, continues to be
on the right side.
See: https://www.toomanyatoms.com/software/mobilized_dillo.html
Authored-By: dogma
Diffstat (limited to 'dw/layout.cc')
-rw-r--r-- | dw/layout.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dw/layout.cc b/dw/layout.cc index ee54e892..4a5be74e 100644 --- a/dw/layout.cc +++ b/dw/layout.cc @@ -943,6 +943,8 @@ void Layout::resizeIdle () assert (topLevel->needsAllocate ()); allocation.x = allocation.y = 0; + if (usesViewport && view->getScrollbarOnLeft()) + allocation.x += currVScrollbarThickness(); allocation.width = requisition.width; allocation.ascent = requisition.ascent; allocation.descent = requisition.descent; |