Comments (7)
I've deactivated overflow:hidden in the staging site (codecheck.me) and this seems to work now. I am a bit concerned that now scrollbars will appear when they are unwanted, but it seems the doc height messages actually take care of that in this example.
from codecheck2.
It seems to be working now both in codecheck.me as well as codecheck.io.
However, I noticed that on Brave (a Chrome-based browser), two vertical scrollbars appear.
This is a minor problem, but I managed to eliminate the inner scrollbar by setting overflow-y: hidden
in the <body>
element of the embedded problem, as shown in the screenshot below. On Firefox it works either way.
from codecheck2.
I see...Chrome shows scroll bars to put an n-pixel high doc into an n-pixel high iframe. That's probably why the overflow was hidden in the first place. I now add 16 pixels for Chrome-based browsers.
from codecheck2.
It continues to work, but I still get double scrollbars in Brave (Chrome).
That's not much of a problem and I'm not sure if forcing overflow-y: hidden
will bring more problems in other browsers. If it works fine with other browsers, I'd consider the bug fixed.
Thanks.
from codecheck2.
I see that the doc height is 599px, and the iframe has a height of 618px. Can you edit the iframe style by hand and see if a greater height will make the scroll bars go away? If so, at what threshold?
from codecheck2.
OK, I tried increasing the <iframe>
style height progressively and eventually (at exactly height: 630px
) the inner vertical scrollbar disappears.
I checked that the embedded document's <body>
element had no overflow
set and kept the same dimensions as in my previous screenshot: margin: 8; height: 591
and width: 705
if inner scrollbar visible, or width: 720
when it disappears.
from codecheck2.
Weird... I'll just set the fudge amount to 32.
from codecheck2.
Related Issues (20)
- For development, store assignments in file system HOT 1
- Fix "Cannot edit problem with directories" HOT 4
- Implement CALL for C HOT 1
- Collapse/expand long files HOT 2
- CodeCheck Tracer Issue: Objects embedded in Frames do not appear properly across browsers HOT 1
- Add Rust support HOT 1
- Other form of zip validation
- Invisible underscores
- Save work in local storage
- Clean up problem editing flow
- Binary files in problem editing
- Unable to view student submissions when visiting Private URL and CodeCheck setup as LTI app HOT 1
- Request INTERLEAVE feature for C and Bash
- Automate Creation and Management of Problems and Assignments
- Isolate Play dependencies: Controllers HOT 1
- Use AWS equivalent of Google Cloud Run HOT 7
- Prototype Quarkus HOT 1
- Add Kotlin to CodeCheck HOT 3
- Allow copying read-only code HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codecheck2.