-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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 ?
Asked: 2010-10-15 09:05:42 +0800
Seen: 275 times
Last updated: Oct 19 '10