drop indicator of the tab bar is shown wrongly for vertical tab bar.

This commit is contained in:
SHIMODA Hiroshi 2011-01-19 19:03:40 +09:00
parent 00cebb1eda
commit c117ad1ccf

View File

@ -942,8 +942,12 @@ try{
info.position == sv.kDROP_AFTER ? 'after' : info.position == sv.kDROP_AFTER ? 'after' :
'self' 'self'
); );
var indicator = b.mTabDropIndicatorBar || b.tabContainer._tabDropIndicator; var indicator = b.mTabDropIndicatorBar || b.tabContainer._tabDropIndicator;
indicator.setAttribute('dragging', (info.position == sv.kDROP_ON) ? 'false' : 'true' ); indicator.setAttribute('dragging', (info.position == sv.kDROP_ON) ? 'false' : 'true' );
if (sv.isVertical)
indicator.collapsed = true;
return (info.position == sv.kDROP_ON || sv.currentTabbarPosition != 'top') return (info.position == sv.kDROP_ON || sv.currentTabbarPosition != 'top')
} }
catch(e) { catch(e) {