From 9aaf3e7747dd92ecdbce9878d3ac19a0027845c4 Mon Sep 17 00:00:00 2001 From: gwigz Date: Thu, 25 Jun 2026 20:08:15 +0100 Subject: @5929 Add drag-n-drop reordering for clothing layers (#5918) - Drag-and-drop reordering for clothing layers with visual insertion indicator - Includes new `keep_scroll_pos` param to preserve and restore scroll positions during layout and resize --- indra/llui/llscrollcontainer.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'indra/llui/llscrollcontainer.h') diff --git a/indra/llui/llscrollcontainer.h b/indra/llui/llscrollcontainer.h index 859750d71c..7761824dbb 100644 --- a/indra/llui/llscrollcontainer.h +++ b/indra/llui/llscrollcontainer.h @@ -64,7 +64,8 @@ public: reserve_scroll_corner, border_visible, hide_scrollbar, - ignore_arrow_keys; + ignore_arrow_keys, + keep_scroll_pos; Optional min_auto_scroll_rate, max_auto_scroll_rate; Optional max_auto_scroll_zone; @@ -138,6 +139,8 @@ private: void calcVisibleSize( S32 *visible_width, S32 *visible_height, bool* show_h_scrollbar, bool* show_v_scrollbar ) const; LLScrollbar* mScrollbar[ORIENTATION_COUNT]; + S32 mStoredDocPos[ORIENTATION_COUNT]; + bool mKeepScrollPos; S32 mSize; bool mIsOpaque; LLUIColor mBackgroundColor; -- cgit v1.3