From 77b11fe12a71de9b2d68b9b84caf2ea6749c5495 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 23 Jan 2025 19:00:41 -0600 Subject: [PATCH] stricter maximum for talk node scrollbar. fix #144 --- src/scenedit/scen.actions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scenedit/scen.actions.cpp b/src/scenedit/scen.actions.cpp index 38e3cd38..ef9df212 100644 --- a/src/scenedit/scen.actions.cpp +++ b/src/scenedit/scen.actions.cpp @@ -2749,7 +2749,6 @@ void start_dialogue_editing(short restoring) { if(restoring == 0) { right_sbar->setPosition(0); reset_rb(); - right_sbar->setMaximum(70 - NRSONPAGE); } for(short i = 0; i < 10; i++) { std::ostringstream strb; @@ -2767,6 +2766,7 @@ void start_dialogue_editing(short restoring) { set_rb(10 + i,RB_DIALOGUE, i, strb.str()); } set_rb(10 + n_nodes, RB_DIALOGUE, n_nodes, "Create New Node"); + right_sbar->setMaximum((11 + n_nodes) - NRSONPAGE); set_lb(NLS - 3,LB_TEXT,LB_NO_ACTION,"Alt-click node to delete",true); update_mouse_spot(translate_mouse_coordinates(sf::Mouse::getPosition(mainPtr))); redraw_screen();