-
FEATURED COMPONENTS
First time here? Check out the FAQ!
It seems the overall with of a grid is fixed after it's drawn for the first time.
Originally my grid may has as many as 100 columns.
However, later it's reduced to have 30 columns, but the overall width of the grid remain unchanged, and each column takes up much more width.
How to avoid this?
And would any one take a look at my 3 questions the end of this page ? Thank you so much!
Hi all,
Could you provide a simple sample or record a video, which can let us clarify the issue?
I have exactly the same problem too:
Here is my column defination:
<checkbox id="usePaging" label="分页显示" checked="false" onCheck="SwitchPagingView()"/> <listbox id="lbCallLog"> <listhead> <listheader label="CallID" width="50px"/> <listheader label="主叫" width="80px"/> <listheader label="被叫" width="100px"/> <listheader label="开始时间" width="100px"/> <listheader label="结束时间" width="100px"/> <listheader label="入中继"/> <listheader label="出中继"/> <listheader label="计费方式"/> <listheader label="计费次数"/> <listheader label="时长(秒)" width="30px"/> <listheader label="费用"/> <listheader label="号码匹配"/> <listheader label="单价(分)"/> <listheader label="基础时长"/> <listheader label="基础价格"/> </listhead> </listbox>
Would you try the fixedLayout property of the listbox to be true?
I tried fixedLayout="true", and it works ok now.
But how the column width is calculated when fixedLayout property is not set ? Does it related font-size CSS attribute?
My CSS defination of ZK:
* { font-size: 12px; font-family: '宋体'; } html {height:100%} fieldset { margin: 4px; padding: 8px; /* border: 1px double green; border-bottom: 1px double green; background-color: #EEFFEE; */ } legend { font-size: 12px; font-weight: bold; /* border: 1px dashed; width: 80%; color: white; background-color: darkblue; */ margin-left: 2em; padding-left: 1em; padding-right: 1em; } p, div, span, label, a, li, dt, dd, input, textarea, pre, body, td { font-family: '宋体',Verdana, Tahoma, Arial, serif; font-size:12px; font-weight: normal; } div.head-cell-inner, th { font-family: '宋体'; font-size: 12px; } td.mwt-overlapped { font-family: '宋体',Verdana, Tahoma, Arial, serif; font-size:12px; font-weight: normal; } button { font-family: '宋体',Verdana, Tahoma, Arial, serif; font-size: 12px; font-weight: normal; } .tab, .tab a, a.tab { font-family: '宋体',Tahoma, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: normal; color: #300030; } .tab a, .tab a:visited, a.tab, a.tab:visited { text-decoration: none; } .tab a:hover, a.tab:hover { text-decoration: underline; } .tabsel, .tabsel a, a.tabsel { font-family: '宋体',Tahoma, Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; color: #500060; } .tabsel a, .tabsel a:visited, a.tabsel, a.tabsel:visited { text-decoration: none; } .tabsel a:hover, a.tabsel:hover { text-decoration: underline; } .listbox-fake { font-size: 12px; } .listbox-head, .listbox-head table { font-family: '宋体'; font-size: 12px; }
Asked: 2008-08-04 08:29:18 +0800
Seen: 190 times
Last updated: Aug 18 '08