mirror of
https://github.com/ocornut/imgui.git
synced 2026-01-09 23:54:20 +00:00
Demo: removed some hardcoded widths.
This commit is contained in:
parent
60f8b0733c
commit
7f78f52243
2 changed files with 4 additions and 6 deletions
|
|
@ -15224,7 +15224,7 @@ void ImGui::LogButtons()
|
|||
const bool log_to_file = Button("Log To File"); SameLine();
|
||||
const bool log_to_clipboard = Button("Log To Clipboard"); SameLine();
|
||||
PushItemFlag(ImGuiItemFlags_NoTabStop, true);
|
||||
SetNextItemWidth(80.0f);
|
||||
SetNextItemWidth(CalcTextSize("999").x);
|
||||
SliderInt("Default Depth", &g.LogDepthToExpandDefault, 0, 9, NULL);
|
||||
PopItemFlag();
|
||||
PopID();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue