App Designer: Bug in Spinner

2 visualizaciones (últimos 30 días)
Tom DeLonge
Tom DeLonge el 9 de Abr. de 2019
Comentada: Tom DeLonge el 5 de Feb. de 2023
I think I found a bug in App Designer's spinner. Please find a minimal working example attached. Please rename the file to spinner_bug.mlapp, since this website does not allow for *.mlapp files to be uploaded.
If you do not want to download the file, here is how to create the app yourself:
  1. Create a blank app in app designer
  2. Add a spinner component and a numerical edit field
  3. Add a callback to the ValueChangedFcn of the edit field. Set the spinner's step size according to the numerical edit field.
Now, execute the app. Click the spinner a few times. Then change the spinner step size. Click the spinner again. Notice how the increment is random for the first click. I tried this in 2018a and 2019a.
Can anyone suggest a workaround?
  2 comentarios
Garv Asrani
Garv Asrani el 1 de Feb. de 2023
Hi Tom DeLonge
I have the same issue. I changed the step size to a non integer value from default 1 and after compilation when I click on the up arrow key it steps from 1 to 0 and then takes the increment of the decimal step value (1.8 in my case). When I manually delete the value in text field and enter 0, the step behaviour works as expected with increments of chosen step size. I have this bug in 2022b.
Were you able to resolve the issue?
Thanks!
Tom DeLonge
Tom DeLonge el 5 de Feb. de 2023
Hi Garv,
no, I still have not been able to resolve this issue.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2019a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by