Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15775] Android: border properties broken for Label

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2014-05-30T22:08:09.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 24, 2013 Sprint 24 API, Release 3.2.0
Componentsn/a
Labelsenterprise, qe-3.2.0, qe-closed-3.3.0, regression
ReporterPragya Rastogi
AssigneeHieu Pham
Created2013-11-21T09:14:21.000+0000
Updated2014-06-20T08:26:54.000+0000

Description

This is a regression issue. Since in SDK 3.1.3.GA, a window with round corners appear 1. Run app. See Results. Actual: Window does not have round border Expected results: A small window should popup with a thin round blue border.

Attachments

FileDateSize
3.2 SDK.png2013-11-21T09:14:21.000+000075150
313 SDK.png2013-11-21T09:14:21.000+0000143986
320on403.png2013-12-04T18:01:41.000+000094821
320on43.png2013-12-04T19:13:50.000+0000177852
testBorder.zip2013-11-21T09:15:22.000+00003136169

Comments

  1. Ping Wang 2013-11-21

    In 3.2.0, all the windows are HW by default (TIMOB-13796). From the screenshots, the window in 3.2.0 looks like a HW window but the window in 3.1.3 is a LW window. If we want to test some specific properties just for LW windows, we need to add
    <property name="ti.android.useLegacyWindow" type="bool">true</property>
    to tiapp.xml.
  2. Pragya Rastogi 2013-11-22

    Hi Ingo, app.js will do. Please use code from app.js in zip file to reproduce the issue.
  3. Ping Wang 2013-11-22

    PR: https://github.com/appcelerator/titanium_mobile/pull/5012 For FR, please add
    <property name="ti.android.useLegacyWindow" type="bool">true</property>
    to tiapp.xml and then run the code below:
       //
       var _window = Titanium.UI.createWindow({});
       var borderWindow = _window;
       	    
       		borderWindow.height = 200;
       		borderWindow.width = 300;
       		borderWindow.top = 20;
       		 
       		var borderView = Ti.UI.createView({
       		     height: 200,
       		     width: 300,
       		     top: 0,
       		     borderRadius: 10,
       		     borderWidth: 2,
       		     borderColor: 'blue',
       		     textAlign: 'center',
       		     opacity: '.6'
       		});
       		 
       		borderWindow.add(borderView);
       		 borderWindow.open();
       
  4. Ping Wang 2013-11-23

    Updated the above test code.
  5. Samuel Dowse 2013-12-04

    +Bug still exists on:+ Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201312031529 Titanium SDK, build: 3.2.0.v20131127194046 CLI: 3.2.0-beta Alloy: 1.3.0-beta Android Emulator: 2.3.3, 4.0.3 Android Device: HTC One (4.3), Nexus 7 (4.1.1) All attempts show border like first picture. Blue border displays on left and right side with no cornered edges. Attaching image of 3.2.0 SDK with the above code running on a 4.0.3 emulator.
  6. Ping Wang 2013-12-04

    [~sdowse], did you add
    <property name="ti.android.useLegacyWindow" type="bool">true</property>
    to your tiapp.xml?
  7. Samuel Dowse 2013-12-04

    I added that line into the tiapp.xml, yes.
  8. Samuel Dowse 2013-12-04

    [~pwang] I restarted Titanium Studio, created a new project and copied the code to this new project and it now works as expected. Cannot explain what I did wrong the first time, but I must have done something. This is now working on my config from my previous comment. Closing.
  9. Kajenthiran Velummaylum 2014-05-23

    Reopening the ticket as a *regression* since it works fine in SDK 3.2.3GA but not in SDK 3.3.0.201405211748. Test Environment: || *Component* || *Version* || | Appcelerator Studio | 3.3.0.201405211748 | | Titanium SDK | 3.3.0.v20140522133312 | | Alloy | 1.4.0-alpha3 | | CLI | 3.3.0-alpha5 | | ACS | 1.0.14 | | NPM | 1.4.10 | | Titanium-Code-Processor | 1.1.1 | | Node-ACS | 1.0.14 | | OS | OS X 10.9.3 (Build:13D65) | | Device | Galaxy S5 (v4.2.2) |
  10. Ingo Muschenetz 2014-05-23

    Hieu, FYI
  11. Hieu Pham 2014-05-30

    LW windows are removed in 3.3.0, therefore this property doesn't do anything:
            <property name="ti.android.useLegacyWindow" type="bool">true</property>
        
    If I run the above test case using a HW window on 3.2.3.GA using:
        var _window = Titanium.UI.createWindow({fullscreen:false});
        
    I'd get identical behavior as 3.3.0.GA running this (since all windows in 3.3.0 are HW):
        var _window = Titanium.UI.createWindow();
        
    Behavior is identical for HW windows in 3.2.3.GA and 3.3.0. This ticket is strictly for LW windows, which are removed.
  12. Paras Mishra 2014-06-20

    Unable to reproduce the issue, Closing as fixed Verified on: Device: LG-P970, Android version: 4.0.4 SDK: 3.3.0.v20140619164112 CLI version : 3.3.0-rc OS : MAC OSX 10.9.2 Alloy: 1.4.0-rc ACS: 1.0.14 npm:1.3.2 LiveView: 1.0.4 Appcelerator Studio, build: 3.3.0.201406171619 titanium-code-processor: 1.1.1 XCode : 5.1.1

JSON Source