Coder Social home page Coder Social logo

Comments (7)

cayhorstmann avatar cayhorstmann commented on September 28, 2024

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.

jmr-ua-pt avatar jmr-ua-pt commented on September 28, 2024

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.

Screenshot

from codecheck2.

cayhorstmann avatar cayhorstmann commented on September 28, 2024

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.

jmr-ua-pt avatar jmr-ua-pt commented on September 28, 2024

It continues to work, but I still get double scrollbars in Brave (Chrome).

Screenshot from 2023-05-11 10-40-38

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.

cayhorstmann avatar cayhorstmann commented on September 28, 2024

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.

jmr-ua-pt avatar jmr-ua-pt commented on September 28, 2024

OK, I tried increasing the <iframe> style height progressively and eventually (at exactly height: 630px) the inner vertical scrollbar disappears.

Screenshot from 2023-05-11 14-18-07

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.

cayhorstmann avatar cayhorstmann commented on September 28, 2024

Weird... I'll just set the fudge amount to 32.

from codecheck2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.