Titanium JIRA Archive
Appcelerator Community (AC)

[AC-5389] iOS - TitleControl not centered

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2017-11-26T20:55:21.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsios, ui
ReporterRodolfo Perottoni
AssigneeShak Hossain
Created2017-11-20T00:46:10.000+0000
Updated2017-11-26T20:55:21.000+0000

Description

After updating my app to 6.2.2.GA the *TitleControl* is not centered anymore. They stick to the right, overlapping with the *RightNavButton*. What's funny is when my window open I can see the TitleControl centered, but as soon the "slide in" animation finishes the *TitleControl* moves to the right. This wasn't happening before 6.2.X !Screen Shot 2017-11-20 at 10.36.44 am.png|thumbnail! Code:
<Window>
    <TitleControl>
        <View layout="vertical" width="Ti.UI.SIZE" height="Ti.UI.SIZE">
            <Label id="lblTitle" text="Smile Capture"/>
            <Label id="lblSubtitle" text="Tap any problem tooth"/>
        </View>
    </TitleControl>

    <RightNavButton>
        <Button title="Clear" />
    </RightNavButton>
</Window>
Note: Removing *width*, *height* and *layout* causes the view to stick to the middle, but then that's not the design I want. I need to vertically order my labels. I also tried changing my *Window* *TitleControl* on the *onOpen* event, but the same happens.

Attachments

FileDateSize
Screen Shot 2017-11-20 at 10.36.44 am.png2017-11-20T00:36:54.000+000010036

Comments

  1. Mostafizur Rahman 2017-11-20

    Hello, Thanks for sharing with us. Can you please test using the latest SDK 6.3.0.GA and let us know how it goes. Best
  2. Hans Knöchel 2017-11-20

    This was a breaking change in iOS 11 and has been addresses as part of 6.3.0 (TIMOB-25300). Please confirm!
  3. Mostafizur Rahman 2017-11-22

    Hello [~rdperottoni],I just wanted to follow up here. Did you manage to follow the recommendations provided earlier? Let us know if you still experience any issue. We would be happy to assist you. Best Regards!

JSON Source