[TIMOB-8466] MobileWeb: vertical aligned views need to center-align children
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2012-03-31T14:54:59.000+0000 |
Affected Version/s | Release 2.0.0 |
Fix Version/s | n/a |
Components | MobileWeb |
Labels | mw-list |
Reporter | Kevin Whinnery |
Assignee | Bryan Hughes |
Created | 2012-03-31T05:31:27.000+0000 |
Updated | 2014-01-28T23:48:58.000+0000 |
Description
I have a view with a vertical layout, and an image and a label as children. The label is left aligned. The expected behavior, which is default on native, is for an auto-size label to center horizontally.
!https://img.skitch.com/20120331-pthpnir3wmjg18k27q8puhjurr.png!
Auto-sized labels are center-aligned by default in vertical alignments. There is probably some other subtly in your code causing the problems. Can you attach it?
As confirmation, you can run the following test case:
After doing some investigation, it turns out this bug is fixed in TIMOB-7799, which is currently waiting in pull request. There was a problem with alignment with vertical when the container and the child were both SIZE combined with a few other parameters (very subtle).