Bookmark and Share

Left hand scroll bar in Flex

Posted on Wed 24 June 2009

Scroll bars appear on the right in Flex (as with everything else) but it can sometimes be useful to move it across to the left. This simple technique of overwriting the updateDisplayList method puts it on the left:

protected override function updateDisplayList(w:Number, h:Number):void { super.updateDisplayList(w, h); if( verticalScrollBar && verticalScrollBar.visible ) { verticalScrollBar.scrollRect = new Rectangle(w,0,-w,h); } }

Permalink | Comments (0)
Tags: , , , . Categories: Actionscript | Flex.

Comments

Comments

Add a comment

Name, e-mail and your comments are all required fields

biuquote
Loading



< go back to the main blog page

< go up to the top of the page