Re: Height and width of div element getting set to zero randomly
Posted: Thu Jan 07, 2021 5:09 pm
We thought of an alternative to using the mobile-device-layout CSS class in addition to your class:
If you're using your own mobile client (not the Profound UI mobile app), then your start HTML could include a <link rel="stylesheet" href="yourCustomStyles.css"> tag to the CSS that your mobile layout uses. That way, the CSS file is loaded before Profound starts rendering in the document body's "onload" event.
Also, we've added support in all mobile apps to automatically request .js and .css files in userdata/extension/mobile/ before rendering the page. Currently, the code waits for JS files to load before rendering but does not wait for CSS files to load--those are only requested and may not download in time. userdata/extension/mobile is meant to avoid adding entries to the "external css" property of every screen. Read more here: https://docs.profoundlogic.com/x/doD2Ag
If you're using your own mobile client (not the Profound UI mobile app), then your start HTML could include a <link rel="stylesheet" href="yourCustomStyles.css"> tag to the CSS that your mobile layout uses. That way, the CSS file is loaded before Profound starts rendering in the document body's "onload" event.
Also, we've added support in all mobile apps to automatically request .js and .css files in userdata/extension/mobile/ before rendering the page. Currently, the code waits for JS files to load before rendering but does not wait for CSS files to load--those are only requested and may not download in time. userdata/extension/mobile is meant to avoid adding entries to the "external css" property of every screen. Read more here: https://docs.profoundlogic.com/x/doD2Ag