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

iOS: rightButton does not appear in TextField if padding is used

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Low
    • Resolution: Unresolved
    • Affects Version/s: Release 3.2.1
    • Fix Version/s: None
    • Component/s: iOS
    • Labels:
    • Environment:

      Mac OSX 10.8.5
      Titanium 3.2.0
      Xcode 5.0.3
      iPhone Simulator 7.0.3

      Description

      The following code is not working. Only textfield is visible. Right button is not shown.

      View:

      <TextField id="measurementTxt">
       <RightButton platform="ios">
        <Button id="measurementBtn" />
       </RightButton>
      </TextField>
      

      TSS:

      "#measurementTxt[platform=ios]":{
      	rightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS
      },
      "#measurementBtn[platform=ios]":{
      	backgroundImage:'images/add_row.png',
      	systemButton: Ti.UI.iPhone.SystemButton.DONE
      }
      

      Titanium Test Case

      var win = Ti.UI.createWindow({
        backgroundColor: 'white'
      });
       
      var done = Titanium.UI.createButton({
          title : 'Done',
          style : Titanium.UI.iPhone.SystemButtonStyle.DONE,
          width: 60,
          height: 60
      });
       
      var textField = Ti.UI.createTextField({
        color: '#336699',
        top: 50, left: 10,
        width: 250, height: 60,
        paddingLeft: 8.5, paddingRight: 8.5,  // Comment out this line to see the button in the text field
        borderStyle: Ti.UI.INPUT_BORDERSTYLE_LINE,
        rightButtonMode: Ti.UI.INPUT_BUTTONMODE_ALWAYS,
        borderWidth: 1, 
        rightButton: done
      });
       
      win.add(textField);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mano_mykingdom Manojkumar Murugesan
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code