Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not able to get the perfect resolution on mobile screen #193

Open
shubham-yug opened this issue Aug 8, 2023 · 1 comment
Open

Not able to get the perfect resolution on mobile screen #193

shubham-yug opened this issue Aug 8, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@shubham-yug
Copy link

Current Behavior

Is there any option to remove the below popup?
image

Also if i try to pass width 390 but there is some blank black space around the browser canvas.
image

Expected Behavior

No response

Steps To Reproduce

No response

Environment

  • OS:
  • OS version:
  • CPU:
  • Docker version:
  • Device model:
  • Browser/OS:

Container creation

   docker run -d \
-p 15001:5800 \
--shm-size 2g \
-e DISPLAY_WIDTH=390 \
-e DISPLAY_HEIGHT=844 \
-e FF_OPEN_URL=https://netbanking.hdfcbank.com/netbanking/ \
 -e FF_KIOSK=1 \
jlesage/firefox

Container log

bfd0b7cbda7e9375afabd3780cb65a82aa21f20162d3cf1d5ae51578ac13d47a

Container inspect

No response

Anything else?

No response

@shubham-yug shubham-yug added the bug Something isn't working label Aug 8, 2023
@shubham-yug shubham-yug changed the title [Bug] Provide a short description of the bug here Not able to get the perfect resolution on mobile screen Aug 8, 2023
@jlesage
Copy link
Owner

jlesage commented Aug 8, 2023

Is there any option to remove the below popup?

If the side control window doesn't disappear automatically (it should after few seconds after to page loads), clicking the "X" should make it disappear.

Also if i try to pass width 390 but there is some blank black space around the browser canvas.

Note that DISPLAY_WIDTH and DISPLAY_HEIGHT define the size of the Firefox's window. 390 seems too small. I'm not sure the (desktop) interface is able to fit in this. On a mobile, you will have to accept some downscaling.

So I would try to set DISPLAY_WIDTH and DISPLAY_HEIGHT to a reasonable value, while keeping the same aspect ratio of your mobile's browser canvas.

You could also try to set to scaling mode to "Remote scaling" (from the side control window). This will provide you a 1:1 scaling and fill to whole browser canvas, but as I said, this might be too small for Firefox.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants