# WebBrowser doesn't scale page

**URL:** <https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658>\
**Category:** UI\
**Tags:** error, webbrowser, unreal-engine, scale, question, UMG\
**Created:** [December 19, 2016, 1:57am UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658 "2016-12-19T01:57:35Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [December 19, 2016, 1:57am UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/1 "2016-12-19T01:57:35Z")

</div>

WebBrowser in UE 4.14 doesn’t scale page to fit viewport like in UE 4.13

 ![119223-error.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/2/e/72ebbd40ae52c02a689e3848f3738a1a0ec4732a.jpeg)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 19, 2016, 2:41pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/2 "2016-12-19T14:41:03Z")

</div>

Hello gameDNA studio,

This is a known issue. I have provided a link to the public tracker. Please feel free to use the link provided for future updates. Thank you for your time and information.

Link: [Unreal Engine Issues and Bug Tracker (UE-37710)](https://issues.unrealengine.com/issue/UE-37710)

Make it a great day

---

<div class="post-metadata">

**Author:** ![FortuN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FortuN](https://forums.unrealengine.com/u/FortuN)\
**Post date:** [January 5, 2017, 9:45pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/3 "2017-01-05T21:45:33Z")

</div>

Any temp fix for this? Really need this function to start working again

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 6, 2017, 2:20pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/4 "2017-01-06T14:20:10Z")

</div>

Previous comment removed. Tested in wrong engine version.

**Edited Post**

---

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [January 6, 2017, 3:55pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/5 "2017-01-06T15:55:11Z")

</div>

In 4.14.2 it still occurs as I noticed on my computer…

---

<div class="post-metadata">

**Author:** ![FortuN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FortuN](https://forums.unrealengine.com/u/FortuN)\
**Post date:** [January 6, 2017, 3:58pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/6 "2017-01-06T15:58:53Z")

</div>

Yes, still for me also, its with 14.2 i tested it with

[[Album] imgur.com ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/7/6c710577e920eb5df755bf7dca158d1efaaf0510.jpeg "imgur.com") ](https://imgur.com/a/h3iJ5)

---

<div class="post-metadata">

**Author:** ![FortuN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@FortuN](https://forums.unrealengine.com/u/FortuN)\
**Post date:** [January 6, 2017, 3:59pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/7 "2017-01-06T15:59:33Z")

</div>

Yes, still doesen’t work for me, its with 14.2 i tested it with

[[Album] imgur.com ![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/c/7/6c710577e920eb5df755bf7dca158d1efaaf0510.jpeg "imgur.com") ](https://imgur.com/a/h3iJ5)

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 6, 2017, 4:19pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/8 "2017-01-06T16:19:54Z")

</div>

Hello FortuN,

I ran the test again and realized that I had opened the wrong project. The project I was using was 4.13. I will be editing my original post to correct it. You are correct, the issue is still happening in 4.14.2. I have no workarounds currently for this issue.

Make it a great day

---

<div class="post-metadata">

**Author:** ![gameDNA](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gamedna/32/1209504_2.png) [@gameDNA](https://forums.unrealengine.com/u/gameDNA)\
**Post date:** [January 22, 2017, 7:00am UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/9 "2017-01-22T07:00:16Z")

</div>

Why it was rescheduled to 4.16? So it 4.15 Preview 1 it’s still broken…

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_0a9ca1ae](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_0a9ca1ae](https://forums.unrealengine.com/u/anonymous_user_0a9ca1ae)\
**Post date:** [January 23, 2017, 2:48am UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/10 "2017-01-23T02:48:30Z")

</div>

We are also affected by this bug. Would love to know if/when there is a solution that can be integrated.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [January 23, 2017, 3:39pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/11 "2017-01-23T15:39:53Z")

</div>

Hello Lauren.Hetu,

If you take a look at the link provided you will see that the current targeted fix for this issue is 4.16. I have that this information helps.

Make it a great day

---

<div class="post-metadata">

**Author:** ![Slavq](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Slavq](https://forums.unrealengine.com/u/Slavq)\
**Post date:** [January 25, 2017, 1:27pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/12 "2017-01-25T13:27:14Z")

</div>

+1 Same problem here, I really can’t downgrade my project back to 4.13, so I’m stuck ☹ Well let’s hope that it can be fixed soon, thanks!

---

<div class="post-metadata">

**Author:** ![RSFlux](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RSFlux](https://forums.unrealengine.com/u/RSFlux)\
**Post date:** [January 26, 2017, 7:26pm UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/13 "2017-01-26T19:26:14Z")

</div>

It looks like the web browser widget is simply not respecting scaling, including DPI scaling. For those of you who are building from source, here is my workaround:

WebBrowserViewport.cpp : 24

```
// Multiply the local size by the geometry's scale.
FVector2D MaxPos = AllottedGeometry.AbsolutePosition + (AllottedGeometry.GetLocalSize() * AllottedGeometry.Scale);

```

CEFWebBrowserWindow.cpp : 1293

```
// Multiply mouse event position to match scaled CEF space.
FVector2D LocalPos = MyGeometry.AbsoluteToLocal(MouseEvent.GetScreenSpacePosition()) * MyGeometry.Scale;

```

I have not tested with the iOS or Android browsers, so I don’t know if they are broken or how this change would affect them.

Hope that helps!

---

<div class="post-metadata">

**Author:** ![project.gheist](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@project.gheist](https://forums.unrealengine.com/u/project.gheist)\
**Post date:** [April 16, 2017, 10:05am UTC](https://forums.unrealengine.com/t/webbrowser-doesnt-scale-page/379658/14 "2017-04-16T10:05:05Z")

</div>

Hi Sorrien, Please see [https://github.com/EpicGames/UnrealEngine/pull/3413](https://github.com/EpicGames/UnrealEngine/pull/3413) for the fix that was integrated by Epic to resolve this issue and will hope fully be in 4.16. You can also see the PR and the actual commit that went into the engine from the issues page linked above. Hope this helps,
