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

Scale To Fit is not working #175

Open
donguseo opened this issue Dec 30, 2015 · 3 comments
Open

Scale To Fit is not working #175

donguseo opened this issue Dec 30, 2015 · 3 comments

Comments

@donguseo
Copy link

Hi.

I'm dong-u seo.

I tried to use the function, named "scale to fit", but it looks not working in my case.
This is the code I wrote.

<!DOCTYPE HTML>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>TEST</title>
    <script src='http://cdn.html5quintus.com/v0.2.0/quintus-all.min.js'></script>
    <script src='test.js'></script>
</head>
<body>
</body>
</html>
var Q = Quintus().include("Sprites, Scenes, UI, Touch, Input")
   .setup({
      width:   600, // Set the default width to 800 pixels
      height:  800, // Set the default height to 600 pixels
      scaleToFit: true // Scale the game to fit the screen of the player's device
    }).touch();

The other functions look OK for me.
But the only "scale to fit" function is not working.
If you know how to fix this please let me know.

Bye.

@viki53
Copy link
Collaborator

viki53 commented Dec 30, 2015

What do you mean in doesn't work? Do you have any more details about the issue you encounter?

Also, make sure you use the latest version of Quintus, which you can get from this repo: the CDN may be out of date.

@donguseo
Copy link
Author

donguseo commented Jan 2, 2016

This problem only occurs when I use the CDN version.

Did you tried the code I wrote in my previous comment? If you have tried
you should have noticed what I meant.
I commented scale to fit function is not working.
What if it is working, when the code is called in different size of browser the canvas size should be different but it wasn't. It was same all the time.

But when I use scale to fit function with the version downloaded from github, it is working.

I write this comment because the CDN version has a problem with scale to fit function.

2015-12-30 17:42 GMT+09:00 Corentin H [email protected]:

What do you mean in doesn't work? Do you have any more details about the
issue you encounter?

Also, make sure you use the latest version of Quintus, which you can get
from this repo: the CDN may be out of date.


Reply to this email directly or view it on GitHub
#175 (comment).


서동우 ( [email protected])

C.P: 010-9206-3368


@Drulac
Copy link

Drulac commented Feb 26, 2017

I have the same issu, when i use the CDN, and when I dont use the CDN :/

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