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

In case of long string icon of contains and not contains will disapper from the rule's widget #215

Open
brita-sed opened this issue Jun 1, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@brita-sed
Copy link
Collaborator

Precondition

  • .../eclipse.exe has launched.
  • iFL plugin has been installed.

Steps

  1. Select a project.
  2. Click iFL button.
  3. Load scores.
  4. Click "Show filters" button.
  5. "Add rule" button.
  6. Add a string type rule, e.g. Name with a long string and with a sort string, normal and negated.

Expected results

  • The rules will appear correctly.

Received results

  • In case of long string, the icon will disappear from the rule widget (no place for it because of the long string).

icon_missing

Environment:

@brita-sed brita-sed added the bug Something isn't working label Jun 1, 2021
@brita-sed brita-sed added this to the 3.0.0.0 milestone Jun 1, 2021
@Dhorvath1294
Copy link
Collaborator

Dhorvath1294 commented Jun 4, 2021

A CLabel is used to support the display of the icon next to the text. Unfortunately, CLabel has it's own way to handle the display of it's contents when there is not enough space. From the documentation of CLabel:
https://www.ibm.com/docs/en/rational-soft-arch/9.6.1?topic=SS8PJ7_9.6.1/org.eclipse.platform.doc.isv/reference/api/org/eclipse/swt/custom/CLabel.html

"If there is not enough space a CLabel uses the following strategy to fit the information into the available space:

  • ignores the indent in left align mode
  • ignores the image and the gap
  • shortens the text by replacing the center portion of the label with an ellipsis
  • shortens the text by removing the center portion of the label"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants