Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1685] Issue with border appearance - no borders on iPhone, missing left on iPad

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:59:23.000+0000
Affected Version/sn/a
Fix Version/sBacklog
ComponentsiOS
Labelsdefect, ios, premium
ReporterThomas Huelbert
AssigneeBlain Hamon
Created2011-04-15T02:59:21.000+0000
Updated2017-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

FileDateSize
4184ipad.tiff2011-04-15T02:59:22.000+00006570
4184iphone.tiff2011-04-15T02:59:22.000+000017014

Comments

  1. Thomas Huelbert 2011-04-15

    added screen shots

  2. Blain Hamon 2011-04-15

    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?

  3. Blain Hamon 2011-04-15

    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.

  4. Lee Morris 2017-03-02

    Closed as invalid.

JSON Source