From aa5ed4740f5624f4007d6a2f2b284415b5e81852 Mon Sep 17 00:00:00 2001 From: Ay1nDas Date: Wed, 8 Oct 2025 21:43:22 +0530 Subject: [PATCH] fixes issue#5931 color palette scrollbar option does not work --- src/ui/widget/color-palette.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/widget/color-palette.cpp b/src/ui/widget/color-palette.cpp index c5cb6329d3..3239eb2c23 100644 --- a/src/ui/widget/color-palette.cpp +++ b/src/ui/widget/color-palette.cpp @@ -490,7 +490,7 @@ void ColorPalette::set_up_scrolling() { auto alloc_width = _normal_box.get_parent()->get_allocated_width(); // if page-size is defined, align color tiles in columns - if (_page_size > 1 && alloc_width > 1 && !_show_labels && !colors.empty()) { + if (!(_rows == 1 && _force_scrollbar) && _page_size > 1 && alloc_width > 1 && !_show_labels && !colors.empty()) { int width = get_tile_width(); if (width > 1) { int cols = alloc_width / (width + _border); -- GitLab