Skip to content

Commit

Permalink
fixed spectrum canvas size (#1662)
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-beldean-lgp authored Aug 9, 2024
1 parent ed05176 commit 716f51b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ColorPickerPOC/ColorPickerSpectrum.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import ri from '@enact/ui/resolution';
import PropTypes from 'prop-types';
import {useCallback, useEffect, useRef, useState} from 'react';

Expand Down Expand Up @@ -107,13 +108,13 @@ const SpectrumColorPicker = (props) => {
<div className={css.colorPicker}>
<canvas
ref={canvasRef}
height={300}
height={ri.scale(600)}
onPointerDown={handleCanvasPointerDown}
onPointerLeave={handleCanvasPointerLeave}
onPointerMove={handleCanvasPointerMove}
onPointerUp={handleCanvasPointerUp}
style={{touchAction: 'none'}}
width={400}
width={ri.scale(800)}
/>
<SpectrumIndicator
bgColor={indicatorBgColor}
Expand Down

0 comments on commit 716f51b

Please sign in to comment.