It's been a while since the last post, but hopefully this will help others
with the same problem.

I've adjusted the onMenuShow function to fix the height problem:

private function onMenuShow(event:MenuEvent):void { 
  if ( !event.menu.variableRowHeight ) {
    event.menu.variableRowHeight = true;
    event.menu.invalidateSize();
  }
}

invalidateSize() will force remeasurement of the component, fixing the
incorrect height.


nathanleewei-2 wrote:
> 
> 
> Anyone has any idea?
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-set-variableRowHeight-%3D-true-in-MenuBar-tp20790140p25938516.html
Sent from the FlexCoders mailing list archive at Nabble.com.

Reply via email to