0

slider - curpos does not work with 5.0.4

asked 2010-10-15 09:05:42 +0800

kapil4ya gravatar image kapil4ya
172 2

updated 2010-10-15 09:06:17 +0800

Hi,

I am setting the slider's position using curpos="80", but is always showed at the starting position.

My code worked fine prior to using 5.0.4, I used 5.0.3 EE before. But seems it does not work as I upgraded to 5.0.4.

Code follows -


<slider id="timeSlider1" width="270px" maxpos="287" curpos="120" onScrolling="scrollSlider(event,self,slider1Time)">
		<attribute name="onCreate">
	
		
		int hours = Integer.parseInt(spiltted[0]);
		int mins = Integer.parseInt(spiltted[1]);
	        hours = hours * 12;
		mins = mins / 5;
		lastSlider1Msg = hours + mins;
		System.out.println("cur pos set for 1 - "+lastSlider1Msg+" cur pos - > "+self.getCurpos());
		self.setCurpos(lastSlider1Msg);
		self.setTooltip(slider1Time.getValue());
		self.setTooltiptext(slider1Time.getValue());
		self.setSlidingtext(slider1Time.getValue());
	
</attribute>

</slider>


Somehow, I get the position to be set with my business logic, and I set the position as shown above, but the slider position always point to the start position.


Just to make sure, I tried zk demo as well http://www.zkoss.org/zksandbox/userguide/#m2. Tried introducing curpos, and it does not work either.

Potential bug in 5.0.4 ?

delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2010-10-19 21:22:41 +0800

henrichen gravatar image henrichen
3869 2
ZK Team

Please post to ZK bugs so we can track it. Thanks.

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: 2010-10-15 09:05:42 +0800

Seen: 275 times

Last updated: Oct 19 '10

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