Flexbox inside a listview li

2 posts, 1 answers
  1. David
    David avatar
    60 posts
    Member since:
    Nov 2012

    Posted 01 May 2013 Link to this post

    I am having some issues with styling an element inside an li.  I am trying to use a flexbox to render some content horizontally, and when I view it in the simulator in icenium it works great, however on the actual devices (both android and iOS) the rendering is different.  You can see the code in this jsfiddle.  I know that the devices are using the old flexbox syntax, I can make it look right when the content is outside of an li of a listview, but not inside.

    On the actual device the flex elements are rendering vertically instead of horizontally, I have attached an image for illustration purposes on how it looks on a real device.

    Is there something about the listview that I need to modify to get this to work correctly? Or am I just better off not using  flexbox? (in the example here I have a simple layout without many elements but I am  planning on making it more complex and a flexbox would really be nice for implementing it).


  2. Answer
    David
    David avatar
    60 posts
    Member since:
    Nov 2012

    Posted 01 May 2013 Link to this post

    So I found a fix, the issue was making the <a> element the flex container, I inserted a flex container 'div' inside the 'a' and all is well.  Updated jsfiddle here in case this helps someone else ...
  3. Kendo UI is VS 2017 Ready
Back to Top