@Override
    protected void calculateTrackRect() {
        super.calculateTrackRect();
        ColorPickerPanel cp = this.colorPicker.getColorPanel();
        int size = Math.min(ColorPickerPanel.MAX_SIZE, Math.min(cp.getWidth(), cp.getHeight()));
        int max = this.slider.getHeight() - (this.ARROW_HALF * 2) - 2;
        if (size > max) {
            size = max;
        }
        this.trackRect.y = (this.slider.getHeight() / 2) - (size / 2);
        this.trackRect.height = size;
    }