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

Resize circuit #3

Closed
mannanj opened this issue Aug 28, 2015 · 3 comments
Closed

Resize circuit #3

mannanj opened this issue Aug 28, 2015 · 3 comments

Comments

@mannanj
Copy link

mannanj commented Aug 28, 2015

Hi first off thank you very much for making this port. It works great! Is it possible to resize the simulation shown in the browser i.e. make it not full-screen? I can't seem to do it by adjusting the width/height in the iframe. Would this be done Java side before compiling?

Sincerely,
Mannan

@sharpie7
Copy link
Owner

If the simulation is contained in an iframe it should adjust to the size of the iframe unless the iframe is too small. For example:

<iframe src="circuitjs.html" width="816" height="640">

From http://lushprojects.com/circuitjs/

The page circuitjs.html will always fill any iframe that contains it, but the iframe doesn't have to be full screen.

@mannanj
Copy link
Author

mannanj commented Aug 31, 2015

Beautiful. I got it to work by having an iframe link to the circuitjs.html

<iframe src="/path/circuitjs.html" height="640" width="816"> 

Thanks so much!

@sharpie7
Copy link
Owner

sharpie7 commented Sep 4, 2015

Great. I think that closes this issue!

@sharpie7 sharpie7 closed this as completed Sep 4, 2015
sharpie7 pushed a commit that referenced this issue Sep 26, 2020
For a new Russian translation
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