-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hi, is there a way to scale the page to fit the device screen?
This is how I am using the Webshell now:
const Webshell = useMemo(
() =>
makeWebshell(
WebView,
new HandleHTMLDimensionsFeature(),
new ForceResponsiveViewportFeature({
maxScale: 1.5,
// initScale: 0.65,
minScale: 0.25,
}),
new ForceElementSizeFeature({
target: 'body',
heightValue: 'auto',
widthValue: 'auto',
}),
new HandleVisualViewportFeature()
),
[]
);
Responsive pages fit perfectly, but the ones with fixed-width elements will go out of the screen.
I need to scale those pages to fit the width of the device screen.
I have noticed that when I double-tap the content in the webview, the content gets scaled perfectly.
Is there a way to achieve this?
This is how the content looks like on the init render (Gets out of the screen):
And this is how it looks like when I double tap(this is what I need to achieve programmatically):
Metadata
Metadata
Assignees
Labels
No labels