GUI: chip manager redesign, part 4

this selectable is so ugly and uncentered
This commit is contained in:
tildearrow 2025-09-16 16:41:55 -05:00
parent 72b94b029a
commit 27a555f129
4 changed files with 13 additions and 10 deletions

View file

@ -597,14 +597,15 @@ void ImGui::ScrollText(ImGuiID id, const char* text, const ImVec2& pos, ImVec2 s
if (size.x==0) {
size.x=((window->DC.CurrentColumns || g.CurrentTable) ? window->WorkRect.Max : window->ContentRegionRect.Max).x-pos.x;
if (textSize.x<size.x) {
size.x=textSize.x;
mustNotScroll=true;
}
}
if (size.y==0) {
size.y=ImGui::GetFontSize();
}
// ???????
if (textSize.x<size.x) {
size.x=textSize.x;
mustNotScroll=true;
}
ImVec2 minArea=pos;
if (pos.x==0 && pos.y==0) {