Details

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

      ipad

      Description

      The height of the option dialog is wrong computed.
      Some report it as the last element that cannot be viewed.(can be some more)
      when you add a titlePrompt to the window the height of the optiondialog reduces but the lenght for the content does not(scroll that far).

      I include a lot of pictures produced by the code below.
      The testcode tries to show 19 options.
      and then when you go from rotate the app on screen 5 you get screen 6

      app.js

      (function() {
      	var win = Titanium.UI.createWindow({
      	  	title: 'iPad OptionDialog Height problem',
      	  	//titlePrompt:'titlePromt makes it worse',
      	  	exitOnClose: true,backgroundColor:'white',navBarHidden:false,modal:true,barColor:'red',
      	});
      	
      	var view = Ti.UI.createView({height:Ti.UI.FILL,layout:'vertical',width:Ti.UI.FILL});
      	win.add(view);	
      	for(var i=0,j=10; i<j; i++){
      		addDialogButton(i);	
      	}		
      	function addDialogButton(index){
      		var button = Ti.UI.createButton({height:Ti.UI.SIZE,width:Ti.UI.SIZE,bottom:10,top:10,index:index});
      		if(index%2==0)
      			button.title = 'show near button '+index;
      		else
      			button.title = 'button '+index;
      		view.add(button);
      		button.addEventListener('click',showOptionDialog);
      	}	
      	function showOptionDialog(){
      		dialog = Titanium.UI.createOptionDialog({
      			title:'optionDialog',
      		    options:['option 1','option 2','option 3','option 4','option 5','option 6','option 7','option 8','option 9','option 10','option 11','option 12','option 13','option 14','option 15','option 16','option 17','option18','option19'],
      		});
      		if(this.index%2==0)
      			dialog.show({view:this});
      		else
      			dialog.show();
      	}
      	win.open();
      })();
      

        Attachments

        1. 1.png
          1.png
          83 kB
        2. 2.png
          2.png
          84 kB
        3. 3 TitlePrompt.png
          3 TitlePrompt.png
          84 kB
        4. 4.png
          4.png
          74 kB
        5. 5.png
          5.png
          79 kB
        6. 6.png
          6.png
          92 kB

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bar b Bar Bruy
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code