Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-15891

iOS: TableView doesn't keep its contentInsets

    Details

    • Type: Bug
    • Status: Open
    • Priority: Medium
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Environment:

      3.1.3.GA / 3.2.0.v20131127194046

      Description

      • TableView has no inset so in the application that I provided below you can't see any red space on the top of the TableView or in the bottom. (You can also try to set smaller inset it is not working as well)
      • If you tap on some TextField (Focus it), TableView will have default inset (This is not really problem), but if you close the keyboard inset is still there... (You can see big red space on the top/in the bottom).

      index.js

      $.win.open();
      

      index.tss

      "Window":{
      	backgroundColor: "white"
      }
       
      "TableView":{
      	width: Ti.UI.FILL, height: Ti.UI.FILL,
      	backgroundColor: "red",
      	style: Ti.UI.iPhone.TableViewStyle.GROUPED,
      	contentInsets: {top: -35, bottom: -35}
      }
       
      "TableViewRow":{
      	width: Ti.UI.FILL, height: Ti.UI.FILL
      }
       
      "TextField":{
      	width: Ti.UI.FILL, height: Ti.UI.FILL,
      	backgroundColor: "#CCCCCC"
      }
      

      index.xml

      <Alloy>
          <Window id="win">
          	<View width="Ti.UI.FILL" height="250" bottom="0">
      	    	<TableView>
      	    		<TableViewRow>
      	    			<TextField value="Value"></TextField>
      	    		</TableViewRow>
      	    		
      	    		<TableViewRow>
      	    			<TextField value="Value"></TextField>
      	    		</TableViewRow>
      	    		
      	    		<TableViewRow>
      	    			<TextField value="Value"></TextField>
      	    		</TableViewRow>
      	    		
      	    		<TableViewRow>
      	    			<TextField value="Value"></TextField>
      	    		</TableViewRow>
      	    		
      	    		<TableViewRow>
      	    			<TextField value="Value"></TextField>
      	    		</TableViewRow>
      	    		
      	    		<TableViewRow>
      	    			<TextField value="Value"></TextField>
      	    		</TableViewRow>
      	    	</TableView>
          	</View>
          </Window>
      </Alloy>
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sko Matej
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-17974
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code