How to automatically adjust the column width of the grid?

Hi:

From your samples,the column width of the grid was locked at a fixed value.like the below code.

{
  id:"grid",
  view:"grid",
  fields:[
	{
	  id:"id",
	  width:40
	},
	{
	  id:"Package",
	  width:350
	},
	{
	  id:"Maintainer",
	  width:200
	}
						
}						

But, the size of of phone screen and resolution are different.My app can work well at smart phone with 4 inches size and 800*600 pixels. The whole picture can’t show at other smaller phones.How can i fix it.
Thanks.

Unfortunately grid doesn’t support auto-adjusting of column sizes.
You can define logic at the start of app, which will check sizes of the screen and define new widths of columns based on it.