Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrap Viewer/DQT error pop up text #7781

Merged

Conversation

Nir-Az
Copy link
Collaborator

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

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]

if( non_space_index != std::string::npos )
{
// Remove trailing spaces
remaining_paragraph = remaining_paragraph.substr( non_space_index );
Copy link
Collaborator

@maloel maloel Dec 6, 2020

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
Collaborator Author

Choose a reason for hiding this comment

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

👍

@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 IntelRealSense: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