Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10205] Android: Window Properties - Click on toggle height width button gives flickering effect.

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2012-09-13T10:36:02.000+0000
Affected Version/sRelease 2.1.1
Fix Version/sn/a
ComponentsAndroid
Labelscore, layout, qe-and070112, qe-newKS
ReporterAnshu Mittal
AssigneeAllen Yeung
Created2012-07-27T00:01:45.000+0000
Updated2017-03-09T23:38:59.000+0000

Description

Window Properties - Click on toggle height width button gives flickering effect. This is not regression. It occurs on 2.0.1GA as well. Steps to Reproduce: 1. Go to Kitchensink> BaseUI> WindowProperties. 2. Click on Toggle Height/Width. The window changes its height width to become smaller. 3. Click again on toggle height width. Actual: The window flickers at top left corner of the screen before getting to the original size. Expected: Resizing of window should be smooth without any flicker.

Comments

  1. Vishal Duggal 2012-08-07

    Looks like a platform bug. Changing component to Android.
  2. Vishal Duggal 2012-08-07

    Putting back in the bucket
  3. Hieu Pham 2012-08-08

    This is a layout issue with heavy weight windows. The behavior is worst when we're not opening a heavy weight window via tab.open(). Here's a good test case:
       var win = Titanium.UI.createWindow({fullscreen: false, backgroundColor: "yellow"});
       
       //
       	// TOGGLE WIDTH AND HEIGHT 
       	//
       	var buttonWidthHeight = Titanium.UI.createButton({
       		title:'Toggle Height/Width',
       		width:220,
       		height:40,
       		top:110
       	});
       	var full=true;
       	buttonWidthHeight.addEventListener('click', function()
       	{
       		Ti.API.info('in width height');
       		if (full)
       		{
       			win.height = 300;
       			win.width = 300;
       			full=false;
       		}
       		else
       		{
       			win.height = null;
       			win.width = null;
       			full=true;
       		}
       	});
       	win.add(buttonWidthHeight);
       	win.open();
       	
       
  4. Allen Yeung 2012-09-13

    Marking this as invalid. There isn't really a flicker, there is a subtle part of the rendering that doesn't look great, but this seems to be the native rendering behavior. I'm not sure there is anything we can do on the platform end to fix this.
  5. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source