CSS style resets on resize

0 favourites
  • 2 posts
From the Asset Store
Simple resize and rotate events for any sprite, quick and easy event sheet that you can use for your own projects.
  • Needed to create a duplicate thread; last one was closed due to broken link. The URL was automatically shortened with a "..." because of its length, and then it was made plaintext because I didn't have enough rep for hyperlinks. Now I do. That should probably be fixed!

    Problem Description

    When the browser window is resized/fullscreened any CSS styles are removed.

    Attach a Capx

    https://dl.dropboxusercontent.com/u/257 ... s-bug.capx

    Description of Capx

    It is a simple modification of the multiplayer chat example which changes some CSS styles and runs at a different resolution.

    Steps to Reproduce Bug

    • Resize the window
    • Cry
    • Use disabled event provided in capx to try and reapply CSS styles for Browser: On Resize
    • That doesn't work either

    Observed Result

    The text becomes larger than it was before. I know the font size is proportional to window, but the proportion itself changes. If others can't reproduce this I can make a video.

    Expected Result

    The CSS style should not change.

    Affected Browsers

    • Chrome: YES
    • ???

    Operating System and Service Pack

    Windows 7 x64 SP1

    Construct 2 Version ID

    beta r165

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Closing, you have 'auto font size' set to 'yes' and this will conflict with your own attempts to set the CSS font-size. Either set auto font size to 'no' or don't set the font-size CSS.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)