diff --git a/src/ui/widget/color-palette.cpp b/src/ui/widget/color-palette.cpp index c5cb6329d36c1910f85bde3282243b8e5f3bf166..3239eb2c238d9a3e3d526b3de453dc920ff58eca 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);