Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(Tab): calculate use wrapper width instead of navbar width #1385

Merged
merged 2 commits into from
Nov 27, 2019
Merged

fix(Tab): calculate use wrapper width instead of navbar width #1385

merged 2 commits into from
Nov 27, 2019

Conversation

byeval
Copy link
Contributor

@byeval byeval commented Nov 26, 2019

No description provided.

@codecov
Copy link

codecov bot commented Nov 26, 2019

Codecov Report

Merging #1385 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1385      +/-   ##
==========================================
- Coverage   90.05%   90.03%   -0.02%     
==========================================
  Files         270      270              
  Lines       15185    15190       +5     
  Branches     4917     4922       +5     
==========================================
+ Hits        13675    13677       +2     
- Misses       1484     1487       +3     
  Partials       26       26
Impacted Files Coverage Δ
src/tab/tabs/nav.jsx 91.66% <100%> (-0.04%) ⬇️
src/form/item.jsx 93.39% <0%> (-2.61%) ⬇️
src/form/form.jsx 87.3% <0%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5107cfe...df704d5. Read the comment docs.

@@ -522,10 +522,6 @@ class Nav extends React.Component {
this.wrapper = ref;
};

navbarRefHandler = ref => {
this.navbar = ref;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. 删ref有一定的风险,可能用户会取到instance然后用到this.navbar,建议保留
  2. 另外如果是为了解决extra跟超出模式下的左右箭头位置冲突问题,那么找一下设计师给一个官方的支持吧

@youluna youluna merged commit ed9bf9a into alibaba-fusion:master Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants