Fitting width to browser but no vertical scroll bars?

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • Since the HTML5 exporter lacks some of the resizing capabilities I require for a project, I'm trying to find a universal resolution for my game frame. The width of the game taking the entire width of the browser frame is important, while the game frame height taking the full browser height is less important. As such, I thought I could just make a game frame that is somewhat wide, as to fit any browser's width before it fits the browser's height. Seems simple enough...

    The thing is, now there are always vertical scroll bars and pressing certain keys causes the browser to scroll down, pushing the game out of frame somewhat.

    I know the game frame can't be as tall as these scroll bars make it seem. How do I combat this? Any help is GREATLY appreciated, as it about to throw in the towel on this project due to sizing issues in HTML5.

  • See if loading the site within an Iframe can help you.
    <iframe src="site.html" allowfullscreen scrolling="no""></iframe>

    Best Regards // Daniel KO Pettersson
    Please login to see this link.

    • Please login to see this link.
    • Please login to see this link.
    • Please login to see this link.
    • Please login to see this link.
  • To achieve what you want to do, the width of the game taking the entire width of the browser, just check the 'Resize display to fill window size' option in the application properties. No scrollbars appear with the HTML generated by Fusion. Also there's no need to use an iframe.

    I think that this is the latest thread where I have posted an example, it's also demonstrating that the application's aspect ratio is preserved: Please login to see this link.

    Edited once, last by Olivier (January 20, 2017 at 2:04 PM).

  • Poof, just like that....
    The NoobFeel is real. TNX Olivier. I'm owe you one :)

    I'll bump the next question right here and will do some research before posting another topic.
    My next issue will be "How to redraw the canvas for Portrati / Landscape view?"

    Scaling works good now and I can pass the viewer between one landscape and one portrait .html file.
    Would be cool if the canvas could be redrawn dynamically in real time.

    Best Regards // Daniel KO Pettersson
    Please login to see this link.

    • Please login to see this link.
    • Please login to see this link.
    • Please login to see this link.
    • Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!