mirror of
https://github.com/ocornut/imgui.git
synced 2026-05-25 18:15:25 +08:00
Obsoleted GetWindowContentRegionMin() and GetWindowContentRegionMax().
You should never need those functions. You can do everything with GetCursorScreenPos() and GetContentRegionAvail().
This commit is contained in:
+1
-1
@@ -3918,7 +3918,7 @@ static void ShowDemoWindowLayout()
|
||||
ImGui::Text("Manual wrapping:");
|
||||
ImGuiStyle& style = ImGui::GetStyle();
|
||||
int buttons_count = 20;
|
||||
float window_visible_x2 = ImGui::GetWindowPos().x + ImGui::GetWindowContentRegionMax().x;
|
||||
float window_visible_x2 = ImGui::GetCursorScreenPos().x + ImGui::GetContentRegionAvail().x;
|
||||
for (int n = 0; n < buttons_count; n++)
|
||||
{
|
||||
ImGui::PushID(n);
|
||||
|
||||
Reference in New Issue
Block a user