GUI: chip manager redesign, part 4
this selectable is so ugly and uncentered
This commit is contained in:
parent
72b94b029a
commit
27a555f129
4 changed files with 13 additions and 10 deletions
9
extern/imgui_patched/imgui_widgets.cpp
vendored
9
extern/imgui_patched/imgui_widgets.cpp
vendored
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue