Skip to main content
LRaim.1
Visitor II
May 15, 2020
Question

ScrollWheelWithSelectionStyle resize at runtime

  • May 15, 2020
  • 2 replies
  • 1142 views

I have a ScrollWheelWithSelectionStyle instanciated from the designer, so it is placed inside the ViewBase, with a certain size.

What I whant is to be able to resize it in height from the View. This is because when instanciated it is set to hold 4 elements, so it's height is ITEM_HEIGHT * 4, but in the View it might contain less than 4 elements.

if I try a ScrollWheel.setHeight(_SOMETHING_) it crashes.

Also tryed to change the number of elements from 4 to (let's say 3), but the items appear ofsetted from the top of a height equale to the height of the missing element.

What is the correct way to resize a ScrollWheel at runtime ?

Thanks

This topic has been closed for replies.

2 replies

Alexandre RENOUX
Visitor II
May 19, 2020

Hello,

This is indeed an issue, we are investigating it and will try to fix it as soon as possible.

The Scroll List does not have this issue so in case a Scroll List is enough in your application you can use it instead.

Sorry for the inconvenience,

/Alexandre

LRaim.2
Visitor II
June 7, 2020

Hello do you have any update on this issue ?

Alexandre RENOUX
Visitor II
June 9, 2020

Hello,

The issue is currently taking care of.

The fix will be normally added to the next release of TouchGFX (4.14) which should be available first half of July.

Sorry for the inconvenience,

/Alexandre