Comments (3)
When i run your code, i dont get horizontal scrollbar when the CollapsingHeader name goes beyond the child window, no matter if the ImGui::Text is there. Horizontal scrollbars are disabled by default, so I dont know how you got a scrollbar without a corresponding flag. If you need a horizontal scrollbar, just pass ImGuiWindowFlags_HorizontalScrollbar
to the window_flags of BeginChild(). Use ImGuiWindowFlags_AlwaysHorizontalScrollbar
if you need to have the scrollbar visible even when the text is fully visible.
Also, why are you passing true
as the child_flags to BeginChild()? It seems a bit weird to me.
from imgui.
Also, why are you passing true as the child_flags to BeginChild()? It seems a bit weird to me.
We changed the signature of BeginChild() quite recently (Sept 2023)
// old
bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), bool border = false;
// current
bool BeginChild(const char* str_id, const ImVec2& size = ImVec2(0, 0), ImGuiChildFlags child_flags = 0, ImGuiWindowFlags window_flags = 0);
// Flags for ImGui::BeginChild()
// (Legacy: bit 0 must always correspond to ImGuiChildFlags_Border to be backward compatible with old API using 'bool border = false'.
enum ImGuiChildFlags_
{
ImGuiChildFlags_None = 0,
ImGuiChildFlags_Border = 1 << 0, // Show an outer border and enable WindowPadding. (IMPORTANT: this is always == 1 == true for legacy reason)
...
};
Which allowed a smoother transition, so old code frequently uses true
which will still work, but ideally should be changed to ImGuiChildFlags_Border
.
from imgui.
Oh, didn't know that.
from imgui.
Related Issues (20)
- SDL: focused viewport pushed into the background by tooltips in its own viewport
- Semi transparent background (Win32, DX11) HOT 5
- "Getting Started" guide misleading step HOT 1
- Suggestion: Extend demo with full screen window / docking examples HOT 9
- Set default tab in TabBar HOT 1
- Suggestion: Add a TabItem that behaves like a Button HOT 3
- Gallery: Post your screenshots / code here (PART 20) HOT 3
- feat: API for Styling glyphs HOT 3
- Child Window Drawing Order HOT 19
- Changing the style of checkbox HOT 1
- Build error with recent version of dawn HOT 1
- When using MultiSelect with BoxSelect in a Table with ScrollY and BordersOuter, items sometimes get skipped HOT 4
- HoveredWindow state is no longer cleared after closing a secondary viewport HOT 2
- Incorrect set for FontScale in the SetCurrentWindow HOT 1
- Can't type Korean in the text box. HOT 7
- imgui_widgets.cpp gives 200+ errors HOT 1
- How can I size a table correctly for a given number of rows when using ImGuiTableFlags_ScrollX? HOT 4
- Image Loading Not Working
- Item-tooltip for group will disappear for a short time if the widget inside is clicked HOT 1
- Multi-viewport: window constrained to main viewport moves if it goes outside of viewport HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgui.