From a898f8da123843c47d39cb7e47f8b5d06ed0a0c0 Mon Sep 17 00:00:00 2001 From: pajlada Date: Sun, 8 Dec 2024 11:44:31 +0100 Subject: [PATCH] fix: initial scrollbar behaviour in inactive tab (#5757) Channel views could sometimes have their scrollbar be at the top instead of bottom when they were first activated if it had messages in it --- CHANGELOG.md | 2 +- src/widgets/Scrollbar.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cb5307a..3bbd8922 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -142,7 +142,7 @@ - Dev: 7TV's `entitlement.reset` is now explicitly ignored. (#5685) - Dev: Qt 6.8 and later now default to the GDI fontengine. (#5710) - Dev: Moved to condition variables when shutting down worker threads. (#5721, #5733) -- Dev: Reduced layouts in channel views when setting a channel. (#5737, #5748) +- Dev: Reduced layouts in channel views when setting a channel. (#5737, #5748, #5757) ## 2.5.1 diff --git a/src/widgets/Scrollbar.hpp b/src/widgets/Scrollbar.hpp index cb1dd058..5d3f1e63 100644 --- a/src/widgets/Scrollbar.hpp +++ b/src/widgets/Scrollbar.hpp @@ -179,7 +179,7 @@ private: boost::circular_buffer highlights_; - bool atBottom_{false}; + bool atBottom_{true}; bool hideThumb{false}; /// Controlled by the "Hide scrollbar thumb" setting bool settingHideThumb{false};