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

Blank Canvas on Refresh #21

Closed
NiharikaPatel opened this issue Dec 11, 2018 · 12 comments
Closed

Blank Canvas on Refresh #21

NiharikaPatel opened this issue Dec 11, 2018 · 12 comments
Labels

Comments

@NiharikaPatel
Copy link

I'm using Zircle on the mixed mode and the canvas is within a container, However, on refreshing the browser the canvas appears to be the entire viewport and the Zview disappears.

@tinchox5
Copy link
Member

Hi @NiharikaPatel! Could you provide a codepen to see the issue?

@tinchox5
Copy link
Member

tinchox5 commented Dec 11, 2018

@NiharikaPatel, when you resize the browser window does the problem persist?

@tinchox5 tinchox5 added the bug label Dec 11, 2018
@NiharikaPatel
Copy link
Author

NiharikaPatel commented Dec 11, 2018 via email

@tinchox5
Copy link
Member

I couldn't see your video here, maybe you can attach an animated gif on this thread. However, I found a bug related to your issue. I'll fix tomorrow morning (Canada time).

tinchox5 pushed a commit that referenced this issue Dec 11, 2018
@tinchox5
Copy link
Member

tinchox5 commented Dec 11, 2018

Please update zircle to v.1.2.1. There was an error in the mixed mode that prevented zircle from taking reference to the size of the container when the browser was refreshed.

@NiharikaPatel
Copy link
Author

NiharikaPatel commented Dec 11, 2018 via email

@tinchox5
Copy link
Member

You don't have to make any change in your code for this bug fix. There is no attached image... I think you should add it trough Github website.

@tinchox5
Copy link
Member

tinchox5 commented Dec 11, 2018

Maybe the problem is that you have defined a container outside the instance of vue (I mean outside the div#app). Here there is a fork of your jsfiddle https://jsfiddle.net/tinchox5/37mr5324/ (I added a border style to see the canvas container)

@NiharikaPatel
Copy link
Author

NiharikaPatel commented Dec 11, 2018 via email

@tinchox5
Copy link
Member

You should use z-canvas as container. You can add an inline style (eg: style="width: 50%") or create a class for z-canvas, like:

<div id="app">
  <z-canvas :views='$options.components' class="zircle">
  </z-canvas>
</div>
<style>
.zircle {
  width: 50% !important; 
  height:100% !important; 
  border: 2px solid red;
}
</style>

If you use a class you need to add !important on width and height properties to overrride the initial config.

@tinchox5
Copy link
Member

There is no file attached. You need to drag and drop the image via Github website

@NiharikaPatel
Copy link
Author

This issue was not related to Zircle, problem maybe related to the node server.

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

No branches or pull requests

2 participants