Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24386] Windows: Resize Label when Window is resized

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-02-15T10:33:36.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2017-02-08T13:08:37.000+0000
Updated2017-03-20T17:15:49.000+0000

Description

Label should layout its content accordingly when parent Window is resized. Note that this only effective on Store apps because you can't resize Window on phone apps. *Expected* Label should resize its content when parent Window is resized. *Actual* Label is not resized.
var _window = Ti.UI.createWindow();

var label = Ti.UI.createLabel({
    height: Ti.UI.SIZE, width: Ti.UI.FILL,
    top: 0,
    text: 'Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.'
});

_window.add(label);
_window.open();

Comments

  1. Kota Iguchi 2017-02-14

    https://github.com/appcelerator/titanium_mobile_windows/pull/952
  2. Samir Mohammed 2017-03-20

    Verified fixed in 6.1.0.v20170317104120 was able to see resize label when Window was resized. *Test Steps* + Create a new classic titanium project + Copy the code provided in the description + Run the program from command line using the command appc run -p windows --wp-sdk 10.0 --target ws-local -l trace + Resized the window and noticed label resized as well *Environment*
       Local windows 10.0.14393
       Operating System:
       Name = Microsoft Windows 10 Pro
       Version = 10.0.14393
       Architecture = 32bit
       CPUs = 4
       Memory = 17034395648
       
       Node.js:
       Node.js Version = 4.6.0
       npm Version = 2.15.9
       

JSON Source