VTK vtkSliderRepresentation2D to : scrollbar height changes when resizing window width only (using Display coordinates)

Description

I am using vtkSliderWidget with vtkSliderRepresentation2Dto implement a vertical scrollbar for a thumbnail strip view.

My goal is:

  • Pixel-precise control of scrollbar geometry

  • Scrollbar height should remain visually constant when resizing window width

  • Only x-position / thickness should respond to width changes

However, I observe the following issue:

Even after switching Point1 / Point2 to Display coordinates, resizing the window width still changes the scrollbar’s visual height.

Hello,

Indeed the display coordinate system is supposed to be in raw screen pixels ((0,0) being bottom-left), thus not to change with model zooming, window resizing, etc.. So, I guess we need to take a look at the part of the code involved.

best,

PC