Range Slider responsiveness and max problem

Hi,


I have a problem with Syncfusion React Range Slider.


I have a simple code:

const SampleSlider: FunctionComponent<SampleSliderProps> = ({ myProps }: SampleSliderProps) => {

.....

  return (

    <>

      <SliderComponent

        type="Range"

        min={1}

        max={360}

        value={[1, 360]}

        tooltip={{ isVisible: true }}

      />

    </>

  );

};

export default SampleSlider;


When the page resizes, the range slider has a responsiveness problem. In addition, note that the max property is not set correctly, and the tooltip does not show the selected values unless I play with the min-max values of the slider.


I am attaching a video to clarify the situation.


Best regards.


Attachment: rangesliderproblem_5ece0f0d.7z

1 Reply

SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team February 10, 2022 02:16 PM UTC

Hi Ugunay, 
 
Greetings from Syncfusion support. 
 
We have validated your reported problem that Slider element not adapts to the dynamically resized dimension of its parent element. 
 
We would like to let you know that Slider is an independent component which will adapts its elements dimension to match the dimension of its parent element both on initial render and on dynamically updating the parent dimension. 
 
However, handle positioning in Slider component works based on the script execution. So, we need to let Slider component know that it parent element’s dimension has been changed, dynamically by calling its refresh method to resolve your reported problem. 
 
We have prepared a sample with your shared code.  
 
 
 
 
 
Please, let us know if you need any further assistance. 
 
Regards, 
Shameer Ali Baig S. 


Loader.
Up arrow icon