Disable auto scaling on mobile version of chromium

226 views
Skip to first unread message

Ludwig Wagner

unread,
Aug 25, 2017, 4:12:16 PM8/25/17
to Chromium-dev
Hi people :)

I use a self compiled content shell in to embed some web content in my android app. I've extended the content/WebKit part of the browser with some app-specific features, thats why I don't just use a WebView.

The content shell has a fixed pixel size in the android application. I've observed that the content shell is now scaling (down in my case) all web contents to fit in the content shell. I can also observe this behaviour when I use the "device toolbar" from the Google Chrome dev tools on my dektop computer.

I want to disable this behaviour. The content shell should always show the left-top most area of the rendered website, scaled at 100%, no matter if the website fits into this pane. I just don't want it to scale automatically.

I know this can be done with viewport meta tags on the html side, but not all content is under my control, so I need a solution that will work independently from the content of the website.

I've already spent some time searching in the chromium source code to find out where the scaling takes place, but I can't get a clue.

Would be very nice if anybody can give me a hint ;)

PhistucK

unread,
Aug 25, 2017, 5:16:38 PM8/25/17
to Ludwig Wagner, Chromium-dev


PhistucK

--
--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
http://groups.google.com/a/chromium.org/group/chromium-dev
---
You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev+unsubscribe@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/8e86c04d-a0ce-455d-97c0-a2718499315c%40chromium.org.

Ludwig Wagner

unread,
Aug 31, 2017, 8:36:31 AM8/31/17
to Chromium-dev, ludwigwag...@gmail.com
Hi and sorry for my late feedback. This is exactly what I was searching for, thanks a lot :)


PhistucK

To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
Reply all
Reply to author
Forward
0 new messages