totalcross
totalcross copied to clipboard
Spinner isnt cropped correctly
Totalcross component spinner isnt cropped correctly
Describe the bug
There is a clear cut in the left and the what is missing is getting in the right part of the component.
To Reproduce
Spinner spinner = new Spinner();
add(spinner,400,400,600,600);
spinner.setBackForeColors(Color.getRGB("000000"),Color.getRGB("BC26FF"));
spinner.start();
Expected behavior
of course is to not to have that cut.
Devices:
Please complete the following information:
- OS Version: [Windows 10]
- TotalCross Version: [6.1.0]
Hey @Iaggoq is this bug reproducible only in the simulator or in some other device is reproducible?
In my android also show like that
Device:
Device: Asus ROG II OS: Android OS Version: 9 TotalCross Version: 6.1.0
Can you try to package for windows and test on your host?
I tested the package on windows and linux arm and still has the same problem
Ok, I think it's a problem with the component. @ricardobna you can look at something about it?
This looks like a bug on skia, does this behavior also happen in the simulator?
The bug also happens in simulator.
@teras , issue #200 suggests a new implementation for this spinner component (called loader there). what do you think?
@teras , issue #200 suggests a new implementation for this spinner component (called loader there). what do you think?
On #200 is a different kind of spinner. There the spinner has defined start and finish. This one is indefinitely. We probably need both, but at minimum we need this.
what about having a single component with a parameter like "finish=true" that defines if it runs indefinitely or has start and finish points? would that introduce too much complexity?
it seems there are issues with transparency and padding on the gif used for this animation. we'll work on a new gif.