[TIMOB-1685] Issue with border appearance - no borders on iPhone, missing left on iPad
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:59:23.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Backlog |
Components | iOS |
Labels | defect, ios, premium |
Reporter | Thomas Huelbert |
Assignee | Blain Hamon |
Created | 2011-04-15T02:59:21.000+0000 |
Updated | 2017-03-02T19:24:49.000+0000 |
Description
1.create a new ipad project, and a new iphone one
2.replace the contents of app.js with:
Ti.UI.setBackgroundColor("#fff");
function alert3 (title, msg) {
var that = this;
this.alertWin = Ti.UI.createWindow(
{opacity: 0.9,
backgroundColor: "#777",
top: "10%", height: "75%", width: "90%", zIndex: 2
});
this.alertText = Ti.UI.createWebView(
{
left: 5, right: 5, top: 40, bottom: 40,
html: "<html><body style='color:#fff; font-family: sans-serif;'>"+
msg+"</body></html>",
color: "#fff",
backgroundColor: "transparent",
font:{fontSize:16}
});
this.alertWin.add(this.alertText);
this.alertWin.open();
}
alert3("hello", "world");
4.run it on both platforms and ote the appearance of the border
results:none on iPhone, the left border missing on iPad
Attachments
File | Date | Size |
---|---|---|
4184ipad.tiff | 2011-04-15T02:59:22.000+0000 | 6570 |
4184iphone.tiff | 2011-04-15T02:59:22.000+0000 | 17014 |
added screen shots
When I talked with Thom, it turns out the 'border' was the shadows of the web view edges. Normally these are hidden, but because the view's background was given to be clear, they show through.
Wait a minute, though. If the background is given to be clear, why are we seeing gray in that area?
Further update. Couldn't recreate the grey, so it's likely the test was different than the example given. Either way, the original issue is a case of confusion. Marking invalid.
Closed as invalid.