Left-most handle label is not showing the minus sign

Issue #366 resolved
Anastasia Baryshnikova created an issue

USE CASE: WHAT DO YOU WANT TO DO?

Make sure that the handle labels in the color settings are clearly visible.

STEPS TO REPRODUCE AN ISSUE (OR TRIGGER A NEW FEATURE)

Load the small_133x133.txt test file.

View > Colors

CURRENT BEHAVIOR

The left-most handle appears to have a value of 3.853601 which is weird because the right-most value is lower. The reason for that is that the left-most handle is not showing a "-" sign before 3.853601, probably because of its length.

EXPECTED BEHAVIOR

We should limit the length of the left-most handle labels to make sure the "-" is included.

DEVELOPERS ONLY SECTION SUGGESTED CHANGE (Pseudocode optional) e.g. Add a color selection class FILES AFFECTED (where the changes will be implemented) - developers only e.g. selectColor.java & settingsPanel.java LEVEL OF EFFORT - developers only trivial/minor/medium/major/overhaul (choose one) COMMENTS

Comments (8)

  1. Robert Leach

    I've seen this as well, only it was more than the minus sign - the whole number and decimal were cut off as well. I think a solution would be to limit precision to 4 significant digits or something like that.

  2. Christopher Keil repo owner

    Limited thumb label size for color chooser

    The labels can not surpass a certain length until round and/ or switch to scientif notation happens. An exception case for problematic gradient drawing (non-increasing fractions) has also been added alongside a hint for users to fix the problem. The issue will not crash and block the UI anymore but provides the user with an opportunity to fix problems right away.

    Resolves: #366

    See also: -

    → <<cset e7e85b359cfb>>

  3. Robert Leach

    Limited thumb label size for color chooser

    The labels can not surpass a certain length until round and/ or switch to scientif notation happens. An exception case for problematic gradient drawing (non-increasing fractions) has also been added alongside a hint for users to fix the problem. The issue will not crash and block the UI anymore but provides the user with an opportunity to fix problems right away.

    Resolves: #366

    See also: -

    → <<cset e7e85b359cfb>>

  4. Log in to comment