From 7bade294672a638bcd1b0451333be5bb948cbbf7 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sun, 6 Oct 2024 10:37:14 +0200 Subject: 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 --- dw/layout.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'dw/layout.cc') 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; -- cgit v1.2.3