fix sidebar scroll when adding or removing panels
This commit is contained in:
@@ -13,6 +13,7 @@
|
||||
#include "node_panel_layer.h"
|
||||
#include "node_panel_color.h"
|
||||
#include "node_panel_stroke.h"
|
||||
#include "node_scroll.h"
|
||||
#include "node_canvas.h"
|
||||
#include "node_dialog_layer_rename.h"
|
||||
|
||||
@@ -42,7 +43,7 @@ public:
|
||||
std::shared_ptr<NodePanelStroke> stroke;
|
||||
NodeCanvas* canvas;
|
||||
Node* current_panel = nullptr;
|
||||
Node* panels;
|
||||
NodeScroll* panels;
|
||||
std::function<void(int)> on_brush_select;
|
||||
std::function<void(glm::vec4 color)> on_color_change;
|
||||
std::function<void()> on_stroke_change;
|
||||
|
||||
Reference in New Issue
Block a user