Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24827] Windows: TableView headerView does not size correctly when tableview has a smaller width

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-08-17T14:46:04.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.2.0
ComponentsWindows
Labelsn/a
ReporterEwan Harris
AssigneeKota Iguchi
Created2017-06-15T13:27:25.000+0000
Updated2017-08-21T10:29:07.000+0000

Description

Description

When a headerView has has a bigger width than the TableView it is added to, it does not seem to be sized correctly based off the behaviour of other platforms
var _window = Ti.UI.createWindow();
var headerView = Ti.UI.createView({
    height: 90,
    width: 300,
    borderColor: 'green',
    borderWidth: 5,
    backgroundColor: 'red'
});
var tableView = Ti.UI.createTableView({
    width: 250,
    data: [{title:'foo'}],
    headerView: headerView
});
_window.add(tableView);

_window.open();

Steps to reproduce

Add the above to an existing app.js

Build for a windows target

Actual

View overflows the tableview constraints

Expected

Based off other platforms, should stick to the width of the tableview

Comments

  1. Kota Iguchi 2017-07-10

    https://github.com/appcelerator/titanium_mobile_windows/pull/1035
  2. Kota Iguchi 2017-08-07

    https://github.com/appcelerator/titanium_mobile_windows/pull/1065
  3. Kota Iguchi 2017-08-18

    Merged to 6_2_X https://github.com/appcelerator/titanium_mobile_windows/pull/1079
  4. Ewan Harris 2017-08-21

    Verified in 6.2.0.v20170821001430, closing ticket

JSON Source