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(comp:carousel): when scaled, the component layout error #1448

Merged
merged 1 commit into from Feb 15, 2023

Conversation

liuzaijiang
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

  • The commit message follows our guidelines
  • Tests for the changes have been added/updated or not needed
  • Docs and demo have been added/updated or not needed

What is the current behavior?

当组件scale(大于1 或者 小于1)后,组件布局错误

<template>
  <IxCarousel class="wrapper">
    <div class="card-item">远看泰山黑糊糊</div>
    <div class="card-item">上头细来下头粗</div>
    <div class="card-item">如把泰山倒过来</div>
    <div class="card-item">下头细来上头粗</div>
  </IxCarousel>
</template>

<style lang="less" scoped>
.wrapper {
  transform: scale(1.5);
}
.card-item {
  height: 160px;
  line-height: 160px;
  background-color: #364d79;
  text-align: center;
  font-size: 16px;
  color: #fff;
}
</style>

What is the new behavior?

组件可以正常显示

Other information

@idux-bot
Copy link

idux-bot bot commented Feb 14, 2023

This preview will be available after the AzureCI is passed.

@codecov
Copy link

codecov bot commented Feb 14, 2023

Codecov Report

Merging #1448 (5cfbdd5) into main (8852db4) will not change coverage.
The diff coverage is n/a.

❗ Current head 5cfbdd5 differs from pull request most recent head 9c9f10b. Consider uploading reports for the commit 9c9f10b to get more accurate results

@@           Coverage Diff           @@
##             main    #1448   +/-   ##
=======================================
  Coverage   92.98%   92.98%           
=======================================
  Files         327      327           
  Lines       30350    30350           
  Branches     2559     2560    +1     
=======================================
  Hits        28221    28221           
  Misses       2129     2129           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@danranVm danranVm merged commit 58ee991 into IDuxFE:main Feb 15, 2023
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.

None yet

2 participants