Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I Use Webviews with photon #150

Open
ssjoon opened this issue Oct 30, 2018 · 2 comments
Open

Can I Use Webviews with photon #150

ssjoon opened this issue Oct 30, 2018 · 2 comments

Comments

@ssjoon
Copy link

ssjoon commented Oct 30, 2018

Hi..
webview does not show it's content

<style>
   webview {
     border: 2px solid red;
     width: 100%;
     height: 100%;
   }
</style>
<body>
<div class="window">
  <div class="window-content">
    <div class="pane-group">
      <div class="pane pane-sm sidebar">
        <nav class="nav-group">
          <h5 class="nav-group-title">3D Exam</h5>
          <span class="nav-group-item">
                <span class="icon icon-home"></span>
                connors
              </span>
          <span class="nav-group-item active">
                <span class="icon icon-light-up"></span>
                Photon
              </span>
          <span class="nav-group-item">
                <span class="icon icon-download"></span>
                Downloads
              </span>
          <span class="nav-group-item">
                <span class="icon icon-folder"></span>
                Documents
              </span>
          <span class="nav-group-item">
                <span class="icon icon-window"></span>
                Applications
              </span>
          <span class="nav-group-item">
                <span class="icon icon-signal"></span>
                AirDrop
              </span>
          <span class="nav-group-item">
                <span class="icon icon-monitor"></span>
                Desktop
              </span>
        </nav>
      </div>
      <webview class="pane" src="https://www.github.com/" autosize="on"></webview>
    </div>
  </div>
</div></code>

thank you

@alassaneDiop
Copy link

I tried to do it but not succeed. I think with webview you will use the css of webview

@cetorres
Copy link

cetorres commented Aug 5, 2019

You can add a webview inside a pane.

<div class="window-content">
    <div class="pane">
        <webview id="webview" src="https://google.com/" autosize="on"></webview>         
     </div>
</div>

It works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants