file picker: what? it's stil broken?!
This commit is contained in:
parent
5e8f3e7577
commit
78a86e3d08
1 changed files with 5 additions and 5 deletions
|
|
@ -1106,14 +1106,14 @@ void FurnaceFilePicker::drawFileList(ImVec2& tableSize, bool& acknowledged) {
|
|||
lastScrollY=ImGui::GetScrollY();
|
||||
} else {
|
||||
ImGui::SetScrollY(lastScrollY);
|
||||
if (ImGui::GetScrollMaxY()>=lastScrollY) {
|
||||
enforceScrollY--;
|
||||
}
|
||||
}
|
||||
|
||||
ImGui::EndTable();
|
||||
entryLock.unlock();
|
||||
}
|
||||
if (enforceScrollY>0 && haveFiles) {
|
||||
enforceScrollY--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1784,8 +1784,8 @@ bool FurnaceFilePicker::draw(ImGuiWindowFlags winFlags) {
|
|||
if (readDirectory(newDir) || isSearch || (isSearchPrev!=isSearch)) {
|
||||
// scroll to top
|
||||
lastScrollY=0.0f;
|
||||
enforceScrollY=2;
|
||||
}
|
||||
enforceScrollY=2;
|
||||
}
|
||||
return (curStatus!=FP_STATUS_WAITING);
|
||||
}
|
||||
|
|
@ -1823,8 +1823,8 @@ bool FurnaceFilePicker::open(String name, String pa, String hint, int flags, con
|
|||
isSearch=false;
|
||||
if (readDirectory(pa)) {
|
||||
lastScrollY=0.0f;
|
||||
enforceScrollY=2;
|
||||
}
|
||||
enforceScrollY=2;
|
||||
windowName=name;
|
||||
}
|
||||
hint=entryNameHint;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue