Skip to content

Commit

Permalink
_connected=true inside iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashi Gowda authored and shashi committed Mar 29, 2018
1 parent 33c69fc commit bd90aa4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/iframe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ function iframe(dom)
s = Scope()
s.dom = Node(:div,
Node(:iframe, id="ifr", style=Dict("width"=>"100%"),
attributes=Dict("src"=>"javascript:void()","frameborder"=>0, "scrolling"=>"no", "height"=>"100%")),
attributes=Dict("src"=>"javascript:void(0)","frameborder"=>0, "scrolling"=>"no", "height"=>"100%")),
style=Dict("overflow"=>"hidden"),
)
onimport(s,
Expand All @@ -29,6 +29,7 @@ function iframe(dom)
win.WebIO.sendCallback = parent.WebIO.sendCallback; // Share stuff
win.WebIO.scopes = parent.WebIO.scopes
win.WebIO.obsscopes = parent.WebIO.obsscopes
win.WebIO._connected = true
doc.body.innerHTML = "<html><body>" + $str + "</body></html>";
setTimeout(function () { resizeIframe() }, 0)
}
Expand Down

0 comments on commit bd90aa4

Please sign in to comment.