Add a workaround to a scroll area bug
This commit is contained in:
parent
91ff487edd
commit
7437ecdae6
5 changed files with 26 additions and 0 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include "../../GUIStuff/ElementHelpers/LayoutHelpers.hpp"
|
||||
#include "../../GUIStuff/ElementHelpers/TextBoxHelpers.hpp"
|
||||
#include "../../GUIStuff/ElementHelpers/NumberSliderHelpers.hpp"
|
||||
#include "../../GUIStuff/ElementHelpers/ScrollAreaHelpers.hpp"
|
||||
#include "../../GUIStuff/Elements/SVGIcon.hpp"
|
||||
#include "../../GUIStuff/Elements/DropDown.hpp"
|
||||
|
||||
|
|
@ -60,6 +61,7 @@ void DrawingProgramLayerManagerGUI::setup_list_gui() {
|
|||
nameToEdit.clear();
|
||||
}
|
||||
else {
|
||||
SCROLL_AREA_BUG_WORKAROUND();
|
||||
gui.element<TreeListing>("list", TreeListing::Data {
|
||||
.selectedIndices = &selectedLayerIndices,
|
||||
.dirInfo = [&](const TreeListingObjIndexList& objIndex) -> std::optional<TreeListing::DirectoryInfo> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue