[TIMOB-13777] BlackBerry - Setting left and right does not calculate the width. The same thing with top and bottom.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-08-07T15:45:47.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.2.0 |
Fix Version/s | Release 3.1.1 |
Components | BlackBerry |
Labels | module_layout, qe-testadded |
Reporter | Pedro Enrique |
Assignee | Russell McMahon |
Created | 2013-05-07T15:20:55.000+0000 |
Updated | 2017-03-09T07:52:10.000+0000 |
Description
Take the following example. You should see a white margin around this red view. Instead you'll see that margin only on the top and left side of the view.
var win = Ti.UI.createWindow({
backgroundColor: 'white'
});
var view = Ti.UI.createView({
left: 10,
right: 10,
bottom: 10,
top: 10,
backgroundColor: 'red'
});
win.add(view);
win.open();
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2013-05-07 at 8.19.42 AM.png | 2013-05-07T15:20:55.000+0000 | 61189 |
Screen Shot 2013-05-07 at 8.20.42 AM.png | 2013-05-07T15:20:55.000+0000 | 112158 |
This should stay 3.1.1 as it's RC and we may spin another build next week
Functional test failed. Works on views who's default width and height are "FILL" but fails on views that who's width and height are "SIZE", Labels, for example, fail. This is supposed to create a label with a red background color and a 10 margin all around, instead, it is sized to fit its text and it's placed at the top 10 and left 10 of the screen:
I'm still working on this one. It works for simple views but not controls that the os resizes. I think I'm close and should have it working this morning. Then will do a PR. It's not a regression so 3.1.1 could go out without, but it should get in as soon as possible.
I'm going to defer from 3.1.1 to 3.1.2. Trying to keep the list as short as possible.
Verified the fix & now setting left right & top & bottom works as expected as in parity with IOS as shown in the screenshot attached. Environment: Ti Studio : 3.1.1.201306112235 Ti BB SDK : 3.1.1.v20130613185544 Mac OSX : 10.8.3 Alloy : 1.1.3-cr CLI - 3.1.1-cr win 7 Win 8 Z10 BB simulator : 10.0.10.822 Z10 device running 10.0.10.88
Closing ticket as fixed.