Skip to content

Wrap Viewer/DQT error pop up text - #7781

Merged
maloel merged 8 commits into
realsenseai:developmentfrom
Nir-Az:wrap_error_messages_by_pixels
Dec 23, 2020
Merged

Wrap Viewer/DQT error pop up text#7781
maloel merged 8 commits into
realsenseai:developmentfrom
Nir-Az:wrap_error_messages_by_pixels

Conversation

@Nir-Az

@Nir-Az Nir-Az commented Nov 16, 2020

Copy link
Copy Markdown
Collaborator

The error pop up text on Viewer and DQT application is not wrapped,
It use a ImGui::InputTextMultiline because the input text is dynamic
(For static text we can use ImGui API - "ImGui::PushTextWrapPos / ImGui::PopTextWrapPos ")
Example before fix:
image

Example after fix:
image

Tracked on [RS5-9465]

Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap-text.h Outdated
Comment thread common/utilities/string/wrap.cpp Outdated
Comment thread common/utilities/string/wrap.cpp
Comment thread common/utilities/string/wrap.cpp
Comment thread common/utilities/string/wrap.cpp Outdated
Comment thread common/utilities/string/wrap.cpp
if( non_space_index != std::string::npos )
{
// Remove trailing spaces
remaining_paragraph = remaining_paragraph.substr( non_space_index );

@maloel maloel Dec 6, 2020

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This removes the leading spaces, not the trailing...

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Comment thread common/utilities/imgui/wrap.h Outdated
Comment thread common/utilities/imgui/wrap.cpp Outdated
@Nir-Az
Nir-Az force-pushed the wrap_error_messages_by_pixels branch from 12c92bb to f407ddb Compare December 14, 2020 13:57
@maloel
maloel merged commit e27697a into realsenseai:development Dec 23, 2020
@Nir-Az
Nir-Az deleted the wrap_error_messages_by_pixels branch July 27, 2021 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants