Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23293] Windows: Corporate Directory App layout issue

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2016-05-16T08:47:03.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.3.0
ComponentsWindows
Labelsqe-5.3.0
ReporterHarry Bryant
AssigneeKota Iguchi
Created2016-04-29T06:40:05.000+0000
Updated2016-05-18T20:36:48.000+0000

Description

Layout issue at directory view on [Corporate Directory App](https://github.com/appcelerator-se/corporate-directory). It happens both Windows Phone 8.1 and Windows 10.

Attachments

FileDateSize
072a6bda-1121-11e6-8bc0-112abf56df33.PNG2016-05-12T23:59:30.000+000013502
android_left.png2016-05-15T20:17:44.000+000011581
DirectoryAppLayout.PNG2016-04-29T06:38:24.000+000037476
e58200e8-1b74-11e6-8a10-04ea3eb42789.PNG2016-05-16T09:24:34.000+000063526
incorrectAlignment.png2016-05-17T18:11:36.000+000060462
Windows_8_1.png2016-05-16T09:36:45.000+000061861
windows_right.png2016-05-15T20:17:44.000+00006855

Comments

  1. Christopher Williams 2016-04-29

    Is this just happening on Corporate Directory? Is it a general issue with layouts for custom fonts? I'm not sure what sort of severity/priority this is. I suppose since it's a regression it doesn't matter and we need to fix for 5.3.0?
  2. Kota Iguchi 2016-05-03

    I think it's not a regression but found some issue in ScrollView and Label. Pushed some improvements: https://github.com/appcelerator/titanium_mobile_windows/pull/660
  3. Gary Mathews 2016-05-03

    I merged your changes, however, there are still some issues
  4. Christopher Williams 2016-05-12

    [~htbryant] [~emerriman] Ok, so i thought this relied on other changes in master that would make it hard to back port. Apparently it does not. So I cherry-picked the PR for 5_3_X to fix some of the layout issues. However, I agree the demo you gave during our standup is bad, so if there are remaining issues, I think we need to open specific tickets for those and I will try my best to investigate them and fix them ASAP. I recall seeing it always complaining about MapService token for you, a blank non-scrollable area (which I _think_ this PR fixes), and the broken looking icon font buttons.
  5. Kota Iguchi 2016-05-12

    Current state: !072a6bda-1121-11e6-8bc0-112abf56df33.PNG|thumbnail!
  6. Kota Iguchi 2016-05-13

    For the "MapServiceToken not specified" error, it is obviously mapservicetoken is not specified, and I was able to erase it locally by specifying valid mapservicetoken in tiapp.xml like below. ([Related PR](https://github.com/appcelerator/titanium_mobile_windows/pull/516))
         <windows>
           <mapservicetoken>xxxxx</mapservicetoken>
         <windows>
       
  7. Gary Mathews 2016-05-15

    So... I'm looking into the Label alignment issue and I found something strange. When using percentage left or right, right padding is appended to the parent. Which is why we have the Corporate Directory misalignment, since we don't need left align the first element to offset the extra padding.
       var win = Ti.UI.createWindow({ backgroundColor: 'red' }),
           view_h = Ti.UI.createView({ layout: "horizontal", top: 10, height: Ti.UI.SIZE, width: Ti.UI.SIZE, backgroundColor: 'orange' }),
           a = Ti.UI.createView({
               backgroundColor: 'yellow',
               height: 60,
               width: 60,
               left: '10%' // why does this add right padding on iOS/Android
           }),
           b = Ti.UI.createView({
               backgroundColor: 'green',
               height: 60,
               width: 60
           });
       view_h.add(a);
       view_h.add(b);
       win.add(view_h);
       win.open();
       
    !android_left.png|thumbnail!!windows_right.png|thumbnail! I have made a workaround, https://github.com/appcelerator/titanium_mobile_windows/pull/690/commits/37800f5a8ec6c585fa9815a5753137b93fb6f3c6
  8. Kota Iguchi 2016-05-16

    Thank you for looking into this [~gmathews]! We have been finding some other issues regarding layout and (I think) it might be too much to push into 5_3_X in this short time frame for the release. Since it will be a fundamental changes in our LayoutEngine, we should be testing it very carefully in good time...For 5_3_X I would push a [simple workaround](https://github.com/appcelerator/titanium_mobile_windows/pull/697) for now and let QE guys test this app asap to be able to prep 5_3_X. But thanks again, I will be looking into this issue too.
  9. Kota Iguchi 2016-05-16

    https://github.com/appcelerator/titanium_mobile_windows/pull/699
  10. Kota Iguchi 2016-05-16

    Current state: !e58200e8-1b74-11e6-8a10-04ea3eb42789.PNG|thumbnail!
  11. Kota Iguchi 2016-05-16

    Without maptoken warning: !Windows_8_1.png|thumbnail!
  12. Harry Bryant 2016-05-16

    Tested the Directory App with SDK 5.3.0.v20160516040258 and the majority of layout issues appear to be resolved. However after comparing the app on Windows to Android / iOS I noticed a few remaining issues: 1. The 3 custom icons are not properly centered. 2. The three contact details below are interactive on Android / iOS whereas there is no interactivity on the Windows platform. 3. A contact window can be scrolled in any direction (via touch & drag) on Windows, but it is locked from doing so on Android / iOS. Can these changes be implemented for 5_3_X? Tested on: Windows 10 Pro Windows Phone 10.0 (Microsoft Lumia 640 LTE) Appc Studio: 4.6.0.201605030516 Ti SDK: 5.3.0.v20160516040258 Appc NPM: 4.2.5-5 Appc Core: 5.3.0-44 Node: v4.4.4
  13. Kota Iguchi 2016-05-17

    {quote} 1. The 3 custom icons are not properly centered. {quote} You mean 3rd one (chat icon), or all three icons? I don't quite get what's wrong, can you describe more on the proper layout? {quote} 2. The three contact details below are interactive on Android / iOS whereas there is no interactivity on the Windows platform. {quote} I guess you mean clickable link Ti.UI.Label.autoLink on the contact detail texts? Tested it on iOS simulator but it doesn't seem interactive. I've added new feature request: TIMOB-23388 {quote} 3. A contact window can be scrolled in any direction (via touch & drag) on Windows, but it is locked from doing so on Android / iOS. {quote} Added ticket for it so we can track this: TIMOB-23387
  14. Harry Bryant 2016-05-17

    I've attached a screenshot which demonstrates the misalignment of the 3 custom buttons. Note that the Red lines represent the positioning of the buttons, and the black line represents the absolute center.
  15. Christopher Williams 2016-05-18

  16. Harry Bryant 2016-05-18

    The remaining issues are being addressed in separate tickets, ( TIMOB-23388 , TIMOB-23387 , TIMOB-23408 ). *Closing Ticket* As the original layout issues have been resolved.

JSON Source