Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Responsiveness not working in React-JS example #345

Open
vinayak-ventura opened this issue Jun 12, 2023 · 5 comments
Open

Responsiveness not working in React-JS example #345

vinayak-ventura opened this issue Jun 12, 2023 · 5 comments

Comments

@vinayak-ventura
Copy link

When I run the react-javascript example, its not adapting as per the screen size. SS given below for reference

To Reproduce

Steps to reproduce the behavior:

  1. Clone the repo
  2. Go to 'react-javascript' folder
  3. Run command - npm install | npm start

Expected behavior
Chart should adapt as per the screen size

Screenshots

image

@romfrancois
Copy link
Contributor

Hi @vinayak-ventura !

Are you by any chance testing on a real device or is it coming from the browser emulation?

@vinayak-ventura
Copy link
Author

vinayak-ventura commented Jun 13, 2023

hey @romfrancois
tried on both, its not adapting, mobile SS attached for your ref
IMG_4039

@romfrancois
Copy link
Contributor

What's not working on the attached screenshot?

The reason I was asking if you were checking on the dev tools emulating a device and especially an iOS device, Chrome/Chromium doesn't render it properly and it displays some elements such as the price scale on the right hand side by truncating the numbers.

@vinayak-ventura
Copy link
Author

the screenshot is taken from real mobile device(iPhone 13), its not responsive, its loading as if its a desktop site.
@romfrancois

@vinayak-ventura
Copy link
Author

hey @romfrancois
it worked when I added the following line to my index.html
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,minimum-scale=1.0">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants