vuetify icon indicating copy to clipboard operation
vuetify copied to clipboard

[Bug Report] v-img can change the dimensions of its parent even if v-img is not explicitly set to do so.

Open MatthewAry opened this issue 7 years ago • 8 comments

Environment

Vuetify Version: 2.0.3 Last working version: 1.5.16 Vue Version: 2.6.10 Browsers: Chrome 75.0.3770.142 OS: Mac OS 10.14.6

Steps to reproduce

Visit codepen. Observe placement and sizing of image.

Expected Behavior

Image should not exceed the size of its parent elements or affect the dimensions of it's parent elements unless it has dimension type properties set on it (width, height, min-width, min-height, max-width, max-height) So if I specify that a v-image can be no taller than 60px, it shouldn't try to become wider than its parent.

Actual Behavior

I can't be sure but it seems that v-img is doing something wrong with how it gives itself a width. It should just try to fill the parent, but it's not doing this very well, it's breaking layouts.

Reproduction Link

https://codepen.io/MatthewAry/pen/dxzoYg

Other comments

I know this worked in Vuetify 1.5. But I'm not sure if it worked in any of the 2.0 betas. I can't be sure if this issue is caused by the ~~new~~ old grid system or v-img. But I think it is v-img because it's giving itself a width.

MatthewAry avatar Aug 01 '19 16:08 MatthewAry

i can get it to work with the new grid system:

https://codepen.io/slinkz/pen/xvLwyG

pauldaiko avatar Aug 01 '19 16:08 pauldaiko

I see, so that's the new grid system! I wonder when the docs for it will go up? So I guess it only affects the old grid system.

MatthewAry avatar Aug 01 '19 17:08 MatthewAry

@pauldaiko I was playing around with your pen. I don't have a lot of experience with the new grid or know much about how it works but by removing the column sizes and by disabling wrap, I was able to reproduce the issue with the new grid. https://codepen.io/MatthewAry/pen/eqEZjV

MatthewAry avatar Aug 01 '19 18:08 MatthewAry

78fbc321583cac2ae845e6c3ddc55048b9f9e806 Was supposed to fix this Related: #8056

KaelWD avatar Aug 02 '19 02:08 KaelWD

Some update here ?

I think this is this bug breaking my layout inside a v-data-table no-data slot :)

BenjaminBorlet avatar Oct 15 '19 14:10 BenjaminBorlet

Hi ! I think I suffer from the same bug, my v-img does not scale down in some case.

BenjaminBorlet avatar Dec 09 '19 16:12 BenjaminBorlet

@BenjaminBorlet Exact same problem here.

svili avatar Jan 12 '20 22:01 svili

I also experience this problem

Jul3k avatar Jan 24 '20 09:01 Jul3k