Here is a code snippet I have where the image exceeds 44px in height:
<div style="width:300px;display:-ms-grid;-ms-grid-rows:44px 44px">
<div style="-ms-grid-row:1; -ms-grid-column:1;">
<img style="max-width:100%;max-height:100%" src="/picture000.png"/> </div>
<div style="-ms-grid-row:2; -ms-grid-column:1">hola mundo</div>
</div>
In this setup, the image is resized proportionally within the div as expected. However, if you uncomment the ms-grid-row-align
property and set it to start
, the image displays full size.
Could this be a bug or do I need to use that property in conjunction with another one that I am not aware of?
p.s: I posted the same question on the MSDN Metro Style apps forum but received no responses.