knowthelist / ftui

FTUI version 3
MIT License
32 stars 21 forks source link

responsive grid width and height interchanged #33

Closed MalteSchwenker closed 2 years ago

MalteSchwenker commented 2 years ago

if the grid is using the "response" tag, the grid-tile attributes "width" and "height" are interchanged.

See grid.component.js -> configResponseGrid

currently there is:

tile.style['grid-row'] = 'span ' + tile.getAttribute('width'); tile.style['grid-column'] = 'span ' + tile.getAttribute('height');

but it should be:

tile.style['grid-row'] = 'span ' + tile.getAttribute('height'); tile.style['grid-column'] = 'span ' + tile.getAttribute('width');

knowthelist commented 2 years ago

You are right. Is fixed now. Thanks