I have successfully build a webapp using R Shiny framework. In that I am showing some points in Googlemap. Now how I can auto-adjustment that html page height and width so that it gets best fit in across different monitor sizes ? I tried to put things in html code as well. This " tags$iframe(width="1330", height="580",
" section is loading page in Internet Explorer with scrollbar but same setting is appearing very good in Chrome in a fit view without scrllbar in same laptop monitor. How can we ensure it will good in all browser and devices like tab, smartphone ?
Below is my code:
inside UI.r:
shinyUI(fluidPage(
titlePanel("My webpage heading"),
mainPanel(
htmlOutput("mypage")
)
))
inside SERVER.r:
shinyServer(function(input, output) {
addResourcePath("library", "D:/R Projects")
output$mypage < -renderUI({
tags$iframe(width = "1330", height = "580",
src = "library/mypage.html")
})
})
top portion of mypage.html source code is as below:
<html>
<head>
//<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />//
<meta name="viewport" content="width=device-width">
<meta name="viewport" content="height=device-height">