Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14972] iOS: Grouped TableView - Not able to calculate height

GitHub Issuen/a
TypeBug
PriorityHigh
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.2
Fix Version/sn/a
ComponentsiOS
LabelsGrouped, TableView, autolayout, height, ios7
ReporterThomas Neerup
AssigneeUnknown
Created2013-08-26T07:58:02.000+0000
Updated2018-02-28T20:03:23.000+0000

Description

*Problem* When using style=GROUPED TableView with height=Ti.UI.SIZE, the height is calculated wrong, this works fine with style=PLAIN. See test case. *Actual Result* The height is calculated wrong *Expected Result* The height should be calculated right. *Test case*
<Alloy>
	<TabGroup>
		<Tab title="one" id="tabone">
			<Window backgroundColor="red" tabBarHidden="true">
				<TableView  style="Titanium.UI.iPhone.TableViewStyle.GROUPED" top="0" height="Ti.UI.SIZE">
					<TableViewSection >
						<TableViewRow title="Row title" ></TableViewRow>
						<TableViewRow title="Row title"></TableViewRow>
					</TableViewSection>
					<TableViewSection headerTitle="Header">
						<TableViewRow title="Row title"></TableViewRow>
					</TableViewSection>
					<TableViewSection>
						<TableViewRow title="Row title"></TableViewRow>
						<TableViewRow title="Row title"></TableViewRow>
					</TableViewSection>
				</TableView>
				<Toolbar platform="ios" bottom="0" borderTop="true" borderBottom="false">
					<Items>
						<Button id="send" title="Send" style="Ti.UI.iPhone.SystemButtonStyle.DONE" />
						<FlexSpace/>
						<Button id="camera" systemButton="Ti.UI.iPhone.SystemButton.CAMERA" />
						<FlexSpace/>
						<Button id="cancel" systemButton="Ti.UI.iPhone.SystemButton.CANCEL" />
					</Items>
				</Toolbar>
			</Window>
		</Tab>
	</TabGroup>
</Alloy>

Attachments

FileDateSize
index.xml2013-08-26T07:58:05.000+00001097
Screen Shot 2013-08-26 at 09.53.46.png2013-08-26T07:58:04.000+000037082

Comments

  1. Thomas Neerup 2013-08-29

    This is also a problem in IOS6.
  2. Ingo Muschenetz 2013-08-29

    [~srahim], thoughts?
  3. Ingo Muschenetz 2013-09-04

    This is Apple bug. We may be able to create a workaround, but it is post-3.1.3.
  4. Ingo Muschenetz 2013-10-17

    Moving into 3.2.1 due to lack of remaining bandwidth for 3.2.0
  5. Ingo Muschenetz 2014-08-14

    3.4.0 is moved forward, and 3.5.0 is taking its place in the calendar.
  6. Amanda 2016-03-03

    Any work around for this? Still seeing this in newest update on iOS 8 (and iOS 9 too)

JSON Source