0

slider IE8 broken when programatically attached in Detail of Grid: Failed to invoke zkSld.onSize

asked 2009-11-19 11:58:41 +0800

timo18146 gravatar image timo18146
189

Hi,

only in IE (tested 7/8) I get the red Error-Box:

Failed to invoke zkSld.onVisi
'this.element.clientWidth' is null or no object..

Failed to invoke zkSld.onSize
'this.element.clientWidth' ist Null oder kein Objekt

I do append it programatically to a groupbox in a Detail of a grid. it happens in any container below the detail. in a goupbox it happens only on the 2. to nth record. the first is still okay. but all other cotainers crash on the first appendchild(myBrokenSlider)

always red box with 'this.element.clientWidth' is null or no object..

Any Ideas? tested in 3.6.2, 3.6.3. Seems to be a bug?

Thanks,

Timo

delete flag offensive retag edit

2 Replies

Sort by ยป oldest newest

answered 2009-11-19 13:05:58 +0800

timo18146 gravatar image timo18146
189

more info:

not reporudicabel via zul
does not happen in <Detail> on fulfill when you try to add sliders in the grid demo in the online demo. THAT works there..

link publish delete flag offensive edit

answered 2009-11-20 01:32:39 +0800

timo18146 gravatar image timo18146
189

Code to reproduce it. Can be 100% reproduced with IE8 on WXP (other win-platforms not tested). Try it in the demo at http://www.zkoss.org/zkdemo/userguide

Press the button more than one time.

I will file a bug.

<zk>


	<zscript>
<![CDATA[
         
	
	void addrow(){
		Groupbox gr2=new Groupbox();
		Caption c2=new Caption("Group 2");
		Label ll2=new Label("move the in ie8 broken slider.");
		Slider sl1=new Slider();
		gr2.appendChild(ll2);
		gr2.appendChild(sl1);
		Vbox vbox=new Vbox();
		vbox.appendChild(gr2);
		Detail detail=new Detail();
		detail.appendChild(vbox);
		detail.setOpen(true);
		Label label=new Label("myLabel");
		Row row = new Row();
		row.appendChild(label);
		row.appendChild(detail);
		rows.appendChild(row);
		
	}
]]>
</zscript>

<grid id="grid1" fixedLayout="true" width="300px" height="400px" >
	<columns>
		<column width="25px" />
		<column label="Attribut"/>
		<column width="25px" label="Status"/>
	</columns>
	<rows id="rows">
		
	</rows>
</grid>
<button label="add one" onClick="addrow()" />


</zk>

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2009-11-19 11:58:41 +0800

Seen: 315 times

Last updated: Nov 20 '09

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More