| commit | 16925525c6418d211df06ea768d8ddc37a5f79d9 | [log] [tgz] | 
|---|---|---|
| author | ocornut <omarcornut@gmail.com> | Tue Feb 10 22:56:28 2015 +0000 | 
| committer | ocornut <omarcornut@gmail.com> | Tue Feb 10 22:56:28 2015 +0000 | 
| tree | fb3245f5e9660b33a3911229b9b7107cd47a312d | |
| parent | c26af284dbc86c433b82922af27ca4295a76bdbf [diff] | 
Selectable: fixed text clipping.
diff --git a/imgui.cpp b/imgui.cpp index 8995109..338248a 100644 --- a/imgui.cpp +++ b/imgui.cpp
@@ -5781,7 +5781,7 @@ } //const ImVec2 off = ImVec2(ImMax(0.0f, size.x - text_size.x) * 0.5f, ImMax(0.0f, size.y - text_size.y) * 0.5f); - RenderTextClipped(bb.Min, label, NULL, &text_size, bb.Max); + RenderTextClipped(bb.Min, label, NULL, &text_size, bb_with_spacing.Max); return pressed; }