Aspect Not Working Correctly With Images + Manual Fix #5288 - GitHub
-
Uh oh!
There was an error while loading. Please reload this page.
- Notifications You must be signed in to change notification settings
- Fork 1.9k
- Star 14.5k
- Code
- Issues 178
- Pull requests 18
- Discussions
- Actions
- Projects 0
- Security
Uh oh!
There was an error while loading. Please reload this page.
- Insights
Description
Describe the bug
When using b-aspect with images that don't match the aspect ratio, the images height will become larger and won't match the desired aspect
Steps to reproduce the bug
- Create an aspect ratio element with an aspect (e.g. 1.8)
- Put an img inside the b-aspect. Make sure the image doesn't match the aspect ratio, to see the effect it has.
- Make sure the img has width: 100% and height: 100% to match the container size
- See the size (which won't match the desired aspect ratio)
Expected behavior
The div containing the image (and hence the img as well) to match the aspect ratio
Versions
Libraries:
- BootstrapVue: 2.12.0
- Bootstrap: 4.4.1
- Vue: 2.6.11
Environment:
- Device: Windows
- OS: Windows 10
- Browser: Chrome
- Version: 81
Demo link
https://codesandbox.io/s/bootstrap-vue-sandbox-8zgrw
In the demo there are 2 images blocks: (1) With the aspect. This one doesn't work.
(2) A manual aspect box which I found how to do online; it's the workaround I'm currently using an I'm working, although I would prefer to use b-aspect
👍React with 👍1Metadata
Metadata
Assignees
No one assignedLabels
Type
No typeProjects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Từ khóa » W-100 Bootstrap Vue
-
Size Props And Classes | Reference | BootstrapVue
-
Layout And Grid System | Components ... - Bootstrap Vue
-
Utility Classes | Reference | BootstrapVue
-
Button | Components | BootstrapVue
-
Vue Sizing - Examples & Tutorial. Bootstrap & Material Design
-
Vue.js - How To Set The Height Of The Box Remains The Same Even ...
-
How To Perform The Flexbox In Bootstrap-vue - Stack Overflow
-
Grid | BootstrapVue Argon Dashboard @ Creative Tim
-
Containers | Bootstrap Vue - CoreUI
-
Bootstrap Vue Image Component - CoreUI
-
Layout And Grid System | Components | BootstrapVue
-
大小规格· BootstrapVue - 逐浪CMS
-
Colors - Bootstrap
-
Layout And Grid System | Components | BootstrapVue