Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15382] iOS7: slider rendering issue if custom thumbImage set before left/rightTrackImage

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNot Our Bug
Resolution Date2014-01-28T22:40:35.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios7, triage
Reporternicolomonili
AssigneeSabil Rahim
Created2013-09-16T07:15:25.000+0000
Updated2017-03-29T16:55:19.000+0000

Description

the problem is simple, with this configuration : (Apple iOS 7 SDK, SDK 3.1.3.v20130908095038, GM xCode 5.0, iOS 7 simulator), the thumbImage appears in an incorrect manner (second attached image) with this configuration : (Apple iOS 7 SDK, SDK 3.1.3.v20130908095038, GM xCode 5.0, iOS 6.1 simulator), the problem there isn't (first attached image)

Attachments

FileDateSize
iOS Simulator 6.png2013-09-23T14:27:04.000+00005091
iOS Simulator 7.png2013-09-23T14:27:04.000+00005076
iOS Simulator Ssim 6.png2013-09-23T14:27:04.000+000014212
Schermata 2013-09-16 alle 09.08.48.png2013-09-16T07:15:25.000+000022491
Schermata 2013-09-16 alle 09.10.21.png2013-09-16T07:15:25.000+000026017

Comments

  1. Ingo Muschenetz 2013-09-16

    Supposedly a known issue, also seen in KitchenSink. Likely an Apple bug. Will try to find the related ticket.
  2. nicolomonili 2013-09-18

    This bug will be fixed today with the release of 3.1.3GA ?
  3. Ingo Muschenetz 2013-09-18

    [~nicolomonili] No. If that were the case, we would have resolved it by now. The current belief is that this is an Apple bug. We are attempting to find the related ticket.
  4. Mostafizur Rahman 2013-09-28

    Hello [~nicolomonili], I test you issue. It’s working well for my test code. So, I am going to resolve this issue. If you have still fetching same problem then please re-open with your test code. Thanks
  5. nicolomonili 2013-09-29

    hi Mostafizur Rahman, I do not know if the problem has been fixed with a new SDK, or if you have closed the ticket because you can not recreate the problem
  6. Ingo Muschenetz 2013-09-30

    [~nicolomonili] It was resolved as "can't reproduce"
  7. nicolomonili 2013-09-30

    I was able to recreate the problem, and figure out what had caused This code shows the problem
       var slide1 = Ti.UI.createSlider({
           width : 200,
           top : 30,
           thumbImage : "slider_new.png"
       });
       win1.add(slide1);
       
       var btn = Ti.UI.createButton({
           title : "click"
       });
       
       win1.add(btn);
       
       var a = false;
       btn.addEventListener('click', function(e) {
           
           if(a){
               slide1.leftTrackImage = "blu.png";
               slide1.rightTrackImage = "grigio.png";
               a = false;
           }else{
               slide1.leftTrackImage = "arancio.png";
               slide1.rightTrackImage = "grigio.png";
               a = true;
           }
       
           
       });
       
    This code solves the problem
       var slide1 = Ti.UI.createSlider({
           width : 200,
           top : 30,
       });
       win1.add(slide1);
       
       var btn = Ti.UI.createButton({
           title : "click"
       });
       
       win1.add(btn);
       
       var a = false;
       btn.addEventListener('click', function(e) {
           
           if(a){
               slide1.leftTrackImage = "blu.png";
               slide1.rightTrackImage = "grigio.png";
               slide1.thumbImage = "slider_new.png";
               a = false;
           }else{
               slide1.leftTrackImage = "arancio.png";
               slide1.rightTrackImage = "grigio.png";
               slide1.thumbImage = "slider_new.png";
               a = true;
           }
       
           
       });
       
    basically the problem is created when you set before the property "thumbimage" and then set properties "lefttrackimage" / "righttrackimage"
  8. Sabil Rahim 2014-01-28

    Looks like this is weird apple bug. I was not able to reproduce the issue if I used interface builder to create the UISlider, But when i created the UISlider programmatically and then changed the left& right track images like we do in Titanium i was able to reproduce the issue. Follow this [Apple thread](https://devforums.apple.com/thread/218267) for more information. Marking ticket as not our bug.
  9. Lee Morris 2017-03-29

    Closing ticket as "Not Our Bug".

JSON Source