# HTML5 canvas scales however the UI's actual position does not

**URL:** <https://forums.unrealengine.com/t/html5-canvas-scales-however-the-uis-actual-position-does-not/673052>\
**Category:** UI\
**Tags:** UE4-23, unreal-engine, UI, question\
**Created:** [October 19, 2022, 8:39pm UTC](https://forums.unrealengine.com/t/html5-canvas-scales-however-the-uis-actual-position-does-not/673052 "2022-10-19T20:39:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soul\_Gatherer1](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Soul\_Gatherer1](https://forums.unrealengine.com/u/Soul_Gatherer1)\
**Post date:** [October 19, 2022, 8:39pm UTC](https://forums.unrealengine.com/t/html5-canvas-scales-however-the-uis-actual-position-does-not/673052/1 "2022-10-19T20:39:31Z")

</div>

Hi There, I seem to be able to constrain how the canvas chooses to sale the visible game window by setting

Module[‘UE4\_fullscreenScaleMode’] = 2;

in MyProjectUE4.js, however when I try to click UI elements its acts as though they are still scaled based on the actual screen resolution, such as a button to close a menu is not aligned with where the image is, but where it would be if I left it at

Module[‘UE4\_fullscreenScaleMode’] = 1;

Does anyone know why this is occurring?
