Skip to content

Commit

Permalink
fix(Tab): add float right
Browse files Browse the repository at this point in the history
  • Loading branch information
youluna committed Jan 17, 2019
1 parent 3913776 commit 11f6d99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/tab/tabs/nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import { events } from '../../util';
import { triggerEvents, getOffsetLT, getOffsetWH, isTransformSupported } from './utils';

const noop = () => {};
const floatRight = { float: 'right' };
const { Popup } = Overlay;

class Nav extends React.Component {
Expand Down Expand Up @@ -440,7 +441,7 @@ class Nav extends React.Component {
key: 'nav-extra',
};
if (tabPosition === 'top' || tabPosition === 'bottom') {
navChildren.unshift(<div {...extraProps}>{extra}</div>);
navChildren.unshift(<div {...extraProps} style={floatRight}>{extra}</div>);
} else {
navChildren.push(<div {...extraProps}>{extra}</div>);
}
Expand Down

0 comments on commit 11f6d99

Please sign in to comment.