Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19294] Windows: Setting both left and right properties on a TextField has unexpected behavior

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2015-08-18T23:14:45.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 5.0.0
ComponentsWindows
Labelsparity
ReporterBenjamin Hatfield
AssigneeKota Iguchi
Created2015-07-30T23:11:55.000+0000
Updated2015-08-20T00:46:21.000+0000

Description

REPRODUCTION: Run the code below in the Windows emulator. RESULTS: The first textfield is positioned correctly but does not stretch across to the right side of the display. If you comment out adding the second textfield and run the code again, the first textfield does not appear at all. OTHER INFO: On Android and iOS, the textfield would extend across the display from left 10 to right 10. {noformat} var win = Ti.UI.createWindow({layout: 'vertical'}); var tf1 = Ti.UI.createTextField({ left: 10, right: 10, hintText: 'blah blah blah' }); win.add(tf1); var tf2 = Ti.UI.createTextField({ width: 100, hintText: 'yada yada yada' }); win.add(tf2); win.open(); {noformat}

Attachments

FileDateSize
android_textfield.PNG2015-07-30T23:11:53.000+000062289
windows_textfield.PNG2015-07-30T23:03:31.000+000010241

Comments

  1. Kota Iguchi 2015-08-18

    https://github.com/appcelerator/titanium_mobile_windows/pull/406
  2. Lokesh Choudhary 2015-08-20

    Verified the fix. Closing Environment: Appc Studio: 5.0.0.v20150819140421 Ti SDK: 5.0.0.v20150819140421 Ti CLI: 4.1.4 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.2.0-1 APPC CLI: 5.0.0-3 Node : v0.10.37 Device: Nokia Lumia 928 - Windows Phone 8.1 Windows emulator : 8.1.

JSON Source