Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-20505] iOS: Inconsistent behavior with various UI components when toggling autolayout

GitHub Issuen/a
TypeStory
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-03-08T05:21:58.000+0000
Affected Version/sn/a
Fix Version/sRelease 5.4.0
ComponentsiOS
LabelsAL-5.4.0, autolayout
ReporterChee Kiat Ng
AssigneePedro Enrique
Created2016-03-03T05:26:41.000+0000
Updated2017-03-20T17:08:53.000+0000

Description

Some UI components has inconsistent layout behaviors when auto-layout property is toggled on/off. Components include: TiMediaVideoPlayer TiUIActivityIndicator TiUIButton TiUIButtonBar TiUICanvasView TiUIImageView TiUILabel TiUIListView TiUIMaskedImage TiUINavBarButton TiUIPicker TiUIProgressBar TiUIScrollView TiUIScrollableView TiUISearchBar TiUISlider TiUISwitch TiUITabGroup TiUITableView TiUITextField TiUITextWidget TiUIWebView TiUIiOSAdView TiUIiOSCoverFlowView TiUIiOSLivePhotoView TiUIiOSToolbar TiUIiPadSplitWindow

Comments

  1. Chee Kiat Ng 2016-03-03

    PR here: https://github.com/appcelerator/titanium_mobile/pull/7618
  2. Chee Kiat Ng 2016-03-03

    Test for regression with this PR

    Steps to Test

    1. get KitchenSink latest master 2. in tiapp.xml, set property
           <ios>
               <use-autolayout>false</use-autolayout>
       
    3. *ti build -p ios* 4. now in tiapp.xml, set sdk to 5.2.0.GA 5. *ti build -p ios -T device*

    Expected Result

    Compare the UI component layouts between the simulator and device. it should be exactly the same.

    Test Case for toggling autolayout

    Steps to Test

    1. get KitchenSink latest master 2. in tiapp.xml, set property
           <ios>
               <use-autolayout>true</use-autolayout>
       
    3. *ti build -p ios* 4. set "use-autolayout" to false 5. *ti build -p ios*

    Expected result

    The key components as stated above in description should behave the same with auto-layout true or false. Note: To also test with landscape orientation, on device, and on iPad.
  3. Chee Kiat Ng 2016-03-04

    CR and FT done. Found some minor issues, so will open separate tickets for those and reference here. Since this is a big ticket and PR, changing to story and merging PR. If there's more bugs to be found, new tickets should be opened.
  4. Chee Kiat Ng 2016-03-08

    PR merged.
  5. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source