Datatable in iframe
Datatable in iframe
c-myers1
Posts: 43Questions: 16Answers: 0
I have a responsive data table in a web page that works fine on is own. When the page is embedded in a parent page's iframe and viewed on a mobile device, it doesn't collapse to as appropriately fills the screen size (i.e. It shows the wide desktop view)
Is there any special coding required to achieve correct behavior in iframes?
This discussion has been closed.
Answers
Not as far as I'm aware. Could you link to a test case showing the issue please?
Allan
From a mobile phone, please compare http://test.viewdemo.space/menutest (clicking the 'Datatable' button) to http://test.viewdemo.space/test_datatable
Secondly (and perhaps due to same root cause), resizing menutest on a desktop has no responsiveness effect.
I don't have a mobile handy at the moment I'm afraid. Does the issue only show up in a mobile browser?
Allan
I came across thus article. It might help https://www.smashingmagazine.com/2014/02/making-embedded-content-work-in-responsive-design/
@bindrid: this looks promising. Will try out