outlandpictures's Forum Posts

  • 1 posts
  • [attachment=0:3g5myb7a][/attachment:3g5myb7a]Problem Description

    ____ A concise description of your problem here ____

    There seems to be a subtle BUG that makes BUTTONS NOT WORK if your BROWSER ZOOM level was set to something less than 100% when your layout loads. It only impacts buttons in certain areas.

    Attach a Capx

    ____ Upload a Capx to this post ____

    [attachment=0:3g5myb7a][/attachment:3g5myb7a]

    Description of Capx

    ____ Concise description of what this CapX does ____

    This VERY SIMPLE program puts TWO BUTTONS on the screen and plays a SOUND when you click either one. If you run this, it should work fine, both buttons appearing as they should and working to play the sound.

    BUT... if you use CHROME and you have your BROWSER ZOOM set to a value that's below 100%, things start to get really weird. Set it 90% and run the layout and the button on the right SHRINKS! Set it to 75% and run the layout, and the button on the right DISAPPEARS! In fact, for anything less than 90%, that button on the right goes away. (For zoom more than 100%, nothing bad happens).

    As for the button in the middle, nothing bad happens. This is because the BUG only applies to BUTTONS that are on the FAR RIGHT, or buttons near the BOTTOM EDGE of the layout.

    Steps to Reproduce Bug

    • Set Browser Zoom to 100% and run the layout. Both buttons work. (Use Chrome)
    • Set Browser Zoom to 90% and run the layout. One button SHRINKS for no reason.
    • Set Browser zoom to 75% and run the layout. One button DISAPPEARS for no reason. Observed Result ____ What happens? ____ Buttons near the RIGHT EDGE and/or BOTTOM EDGE are being impacted by BROWSER ZOOM's lower than 100%, but it's only the zoom level set before you run the layout that causes the problem. you can't change the zoom during the running of the layout to see any problems. I'm pretty sure, that for N% zoom, any buttons that are more than N% of the way towards the LEFT of the screen, or N% of the way towards the BOTTOM of the screen, don't work. Thus for 90% zoom, 10% of the screen's left and 10% of the screen's bottom, have non-functional buttons. Etc... For ZOOM's greater than 100%, there is no problem. Note - the ZOOM level only makes a difference when the program LOADS. After the program is running, you can change the zoom all you want, and it won't impact the buttons. This means you can't get buttons to work after the fact by changing the zoom. Expected Result ____ What do you expect to happen? ____ I expect all buttons to behave the same, regardless of where on the screen they are. I expect buttons to work, regardless of what Browser Zoom a user happens to have set. Affected Browsers
      • Chrome: (YES)
      • FireFox: (Have not Tested)
      • Internet Explorer: (Have not Tested) Operating System and Service Pack ____ Your operating system and service pack ____ Windows 7 Construct 2 Version ID ____ Exact version ID of Construct 2 you're using ____ Latest Version.
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 1 posts