Scrolling Bugfix for Storyline SDK

Here is a bugfix for the Storyline SDK default custom frame If  no scrollbar in the slide menu is visible and you scroll within the slide menu all content will push to the bottom

Replace these method with the original -> located in panels/Menu as:

protected function UpdateChildren():void

{

if (!m_bIgnoreExpand)

{

this scrollbar x = m_nWidth - this scrollbar width;

this scrollbar y = 0;

this scrollbar height = m_nHeight;

this scrollbar ContentHeight = this tree ExpandedHeight + SCROLL_MARGIN;

var nWidth:int = 0;

if (this scrollbar ContentHeight > m_nHeight)

{

nWidth = this scrollbar x - this tree x - 1;

this scrollbar visible = true;

this tree scrollRect = new Rectangle(0, this scrollbar Position, nWidth, this scrollbar height - SCROLL_MARGIN);

}

else

{

nWidth = m_nWidth - MARGIN_TREE - this tree x - 1;

this scrollbar visible = false;

}

this tree width = nWidth;

}

}

Be the first to reply