void ClassName::scrollViewDidScroll(CCScrollView* view)
{
m_list->cancelTouchingItem();
CCSize Csize = m_scrollList->getContentSize();
CCSize Vsize = m_scrollList->getViewSize();
float sizePercent = Vsize.height/Csize.height;
CCLog("sizePercent:%f",sizePercent);
CCPoint min = m_scrollList->minContainerOffset();
CCPoint p = m_scrollList->getContentOffset();
CCLOG("*************:%f %f",min.x,min.y);
CCLOG("getContentOffset:%f %f",p.x,p.y);
float percecnt ;
if (min.y == 0) {
m_bar->setScaleY(1);
m_bar->setPosition(ccp(0,-p.y));
}else{
percecnt = p.y/min.y;
m_bar->setScaleY(sizePercent);
m_bar->setPosition(ccp(0,percecnt*Vsize.height*(1-sizePercent)));
}
CCLOG("percecnt:%f",percecnt);
}