Gabriel G. Roy
Gabriel G. Roy

Reputation: 2632

Content zoomed out using .NET WebBrowser control in Windows CE 7

I've recently upgraded to Windows CE7 for one of my personal projects written in C#. As you may know, CE7 introduced touch support, so the WebBrowser control works differently in regards to panning and zooming.

Here's my setup:

The problem:

Any idea why this is happening and if there's a way to fix this?

Upvotes: 1

Views: 1589

Answers (1)

Gabriel G. Roy
Gabriel G. Roy

Reputation: 2632

Turns out my question was similar to this one

You need to add metadata to the web page you want to display. Thankfully I have access to those pages which will make my job easier. Otherwise you need to play around the content and add this tag programmatically.

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />

PS. I honestly didn't know how closely related WP7 and CE7 were. Now I know.

Upvotes: 1

Related Questions