# issue with vflex="min" and padding: the padding on the bottom is not correct

myzkdemo
154 3

Hi,

I have an issue with vflex="min". Paddings of componentes with vflex="min" get a to high padding on the bottom.

<zk>
<box vflex="min" style="background: yellow; padding: 10px">
<div height="200px" width="200px" style="background: red;"/>
</box>
</zk>

Is this a bug? I'm using ZK 5.0.7.1.

regards,
Gunter

delete retag edit

## 5 Replies

matthewgo
375

Hi
Do you mean that you get a "too" high padding on the bottom.?
I try and everything looks fine.
can your provide more detail ?

myzkdemo
154 3

Hi,

the problem is only in IE. The firefox shows the padding correct.

I guess there is a wrong calculation of the bottom padding combined with the using of vflex="min". If you remove the vflex="min" the IE shows the correct padding.
If you change the padding value from 10px to 20px the bottom padding enlarged extreme. It seems the botton padding value works like a factor for the calculation of the bottom padding high.

regards,
Gunter

matthewgo
375

Hi

myzkdemo
154 3

regards,
Gunter

jumperchen
3909 2 8
http://jumperchen.blogspo...

Hi,
So far we don't have a good way to fix it.
X: meaning it should not have
V: meaning it should have
Miss: meaning it should have, but not have

To workaround this is to use a Div or vlayout to specify with padding style, rather than specify
the style on the table element.(box component)

[hide preview]