Skip to content

Color picker does not show all colors #380

@pipik-roman

Description

@pipik-roman

There is error in ColorPicker code:

for ( int i = 0, row = 0; i < colors.length; i++, row++ ) {
for ( int y = 0; y < 7 && i < colors.length; y++, i++ ) {
table.setWidget( row, y, new ColorBox( this, colors[i] ) );
}
}

variable i is incremented twice and this causes that some colors are missing. For example white

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions