Added scroll area workaround to file list view
This commit is contained in:
parent
7437ecdae6
commit
6b7973072d
1 changed files with 2 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
||||||
#include "../GUIStuff/Elements/SVGIcon.hpp"
|
#include "../GUIStuff/Elements/SVGIcon.hpp"
|
||||||
#include "../GUIStuff/Elements/TextParagraph.hpp"
|
#include "../GUIStuff/Elements/TextParagraph.hpp"
|
||||||
#include "../GUIStuff/ElementHelpers/LayoutHelpers.hpp"
|
#include "../GUIStuff/ElementHelpers/LayoutHelpers.hpp"
|
||||||
|
#include "../GUIStuff/ElementHelpers/ScrollAreaHelpers.hpp"
|
||||||
#include "../GUIStuff/Elements/PositionAdjustingPopupMenu.hpp"
|
#include "../GUIStuff/Elements/PositionAdjustingPopupMenu.hpp"
|
||||||
#include "../World.hpp"
|
#include "../World.hpp"
|
||||||
#include "Helpers/StringHelpers.hpp"
|
#include "Helpers/StringHelpers.hpp"
|
||||||
|
|
@ -683,6 +684,7 @@ void FileSelectScreen::file_view() {
|
||||||
};
|
};
|
||||||
|
|
||||||
if(fileViewType == FileViewType::LIST) {
|
if(fileViewType == FileViewType::LIST) {
|
||||||
|
SCROLL_AREA_BUG_WORKAROUND();
|
||||||
fileViewScrollArea = gui.element<ManyElementScrollArea>("File selector list", ManyElementScrollArea::Options{
|
fileViewScrollArea = gui.element<ManyElementScrollArea>("File selector list", ManyElementScrollArea::Options{
|
||||||
.entryHeight = 150.0f,
|
.entryHeight = 150.0f,
|
||||||
.entryCount = fileList.size(),
|
.entryCount = fileList.size(),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue