InputTextMultiline(): partial fix for when input and internal buffers differs in a way where scrollbar existence differs. (#725)

Partial fix, won't stop ids from functioning because of a zombie id.
This commit is contained in:
ocornut
2016-07-13 01:18:59 +02:00
parent 9c71ec38f0
commit d9e2e688e9
2 changed files with 9 additions and 2 deletions

View File

@ -657,6 +657,7 @@ public:
ImGuiID GetID(const char* str, const char* str_end = NULL);
ImGuiID GetID(const void* ptr);
ImGuiID GetIDNoKeepAlive(const char* str, const char* str_end = NULL);
ImRect Rect() const { return ImRect(Pos.x, Pos.y, Pos.x+Size.x, Pos.y+Size.y); }
float CalcFontSize() const { return GImGui->FontBaseSize * FontWindowScale; }