[TIMOB-12717] Blackberry : We see a pixel shift in the window positioning on BlackBerry simulator
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Closed |
| Resolution | Invalid |
| Resolution Date | 2013-07-26T16:33:10.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | n/a |
| Components | BlackBerry |
| Labels | sdk-bb |
| Reporter | Lokesh Choudhary |
| Assignee | Pedro Enrique |
| Created | 2013-02-13T00:17:30.000+0000 |
| Updated | 2017-03-13T22:23:45.000+0000 |
Description
NOTE: This issue is only seen on simulator & not on device
Description:
1.Run the code below on Bb simulator/device
var win1 = Titanium.UI.createWindow({
backgroundColor:'#000'
});
var label1 = Titanium.UI.createLabel({
color:'#999',
text:'I am Window 1',
font:{fontSize:10},
});
win1.add(label1);
win1.open();
2. Check the app after it launches
Actual Result:
1.The window position is one pixel off on the top & left border
Expected Result:
1.The window should position exactly
Screenshot attached for reference
Attachments
| File | Date | Size |
|---|---|---|
| Screen Shot 2013-02-12 at 4.08.18 PM.png | 2013-02-13T00:17:30.000+0000 | 37514 |
This happens with native apps as well. Probably a simulator bug. Code used to test:
#include <bb/cascades/Application> #include <bb/cascades/Container> #include <bb/cascades/Page> #include <bb/cascades/Color> using namespace bb::cascades; Q_DECL_EXPORT int main(int argc, char **argv) { Application app(argc, argv); Page* page = new Page(); Container *view = new Container(); view->setBackground(Color::Black); page->setContent(view); app.setScene(page); return Application::exec(); }Closing issue as we no longer offer support for BlackBerry.