Skip to content

Source code viewer has tiny height #136

Closed

Description

@sizzlemctwizzle

@Zren

This was only thing I caught when testing #129 but it wasn't enough to prevent me from merging and deploying. It happens when not logged in.

Screenshot

Activity

  1. sizzlemctwizzle commented on Jun 11, 2014

    @sizzlemctwizzle
    MemberAuthor

    Maybe it has nothing to do with being logged in. This script looks the same to me logged in or not. But some scripts don't have this problem for whatever reason.

  2. changed the title [-]Source code viewer has tiny height when not logged in[/-] [+]Source code viewer has tiny height ~~when not logged in~~[/+] on Jun 11, 2014
  3. changed the title [-]Source code viewer has tiny height ~~when not logged in~~[/-] [+]Source code viewer has tiny height[/+] on Jun 11, 2014
  4. sizzlemctwizzle commented on Jun 11, 2014

    @sizzlemctwizzle
    MemberAuthor

    Okay I got it. It's a Chrome issue (I tested logged out using Chrome and logged in using Firefox).

  5. Zren commented on Jun 11, 2014

    @Zren
    Contributor

    html, body { min-height: 100vh; } maybe?

    I used:

    body > .container-fluid {
      min-height: calc(100vh - 50px - 20px - 50px);
    }

    and

    #editor {
      position: relative;
      min-height: 200px;
      height: calc(100vh - 190px);
    }

    On that page. I forgot that some browsers need that set to make webapps scaled to the viewport. Though it works fine on my Chrome install (dev branch).

    100vh = 100% viewport height.

  6. Martii commented on Jun 12, 2014

    @Martii
    Member

    Did this get fixed? In Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 (Chromium) it appears to be doing okay with last assumed production deployment of a128bc8 Retested: Isn't working in Chromium. Retested again and now it is working as expected. Weird boog.

  7. sizzlemctwizzle commented on Jun 13, 2014

    @sizzlemctwizzle
    MemberAuthor

    Did this get fixed?

    Not for me. This page: https://openuserjs.org/scripts/joesimmons/httpuserscripts.orgusers23652/YouTube_Auto_Buffer_Auto_HD/source

    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36

  8. Martii commented on Jun 13, 2014

    @Martii
    Member

    Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.114 Safari/537.36

    hmm your Chrome value appears to be behind... usually the UA's are nearly identical.

  9. Martii commented on Jun 14, 2014

    @Martii
    Member

    Confirmed on:

    Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36
    Squeeky clean install (first time on that machine)
    

    P.S. That was very trying to get Chrome to install ... I had to locate a url to manually download the installer since zero browsers would download and install it. Noticed you crossed out "not logged in" too.. so I checked logged in too... Are you using a distro package for Chrome?... perhaps it's out of date.

  10. added a commit that references this issue on Jun 14, 2014
    54eb6a4
  11. added a commit that references this issue on Jun 14, 2014
  12. sizzlemctwizzle commented on Jun 14, 2014

    @sizzlemctwizzle
    MemberAuthor

    Still happening to me. It shouldn't matter if my version of Chrome isn't the exact latest.

  13. Martii commented on Jun 14, 2014

    @Martii
    Member

    It shouldn't matter

    Well unfortunately it does... on Wednesday I asked a friend of mine to try the site on his Android and tables were quite messed up in md. Keep your version though maybe we'll figure out a hidden issue.

  14. Martii commented on Jul 9, 2014

    @Martii
    Member

    A-ha! Opera/9.80 (X11; Linux x86_64) Presto/2.12.388 Version/12.16 exhibits this behavior currently (does not in Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.153 Safari/537.36 OPR/22.0.1471.70) ... something to test on finally. ;) ... also does it on the register/login page.

  15. Martii commented on Jul 9, 2014

    @Martii
    Member

    It seems like the issue is that calc doesn't exist.... e.g. height: calc(100vh - 190px); does nothing... tried converting to all px and still nothing... removed the calc and put in a static value and it resized to that value... checking browser compatibility... CSS3 implemented... a table of compatibility. EDIT: vh measurement unit doesn't do anything too... a table of compatibility so that is probably CSS3 too.


    @sizzlemctwizzle

    Can you try prefixing with these on your Chrome at ./views/pages/scriptViewSourcePage.html and perhaps just single rules to isolate if any work:

        #editor {
          position: relative;
          min-height: 200px;
          height: -moz-calc(100vh - 190px);
          height: -webkit-calc(100vh - 190px);
          height: -o-calc(100vh - 190px);
          height: calc(100vh - 190px);
        }

    This doesn't fix it in Opera Presto (older version) though... just no support for this CSS3 function in older browsers I think. A bug in the latest Chrome/Chromium perhaps.


    Added similar rules to oujs - Meta View

  16. Martii commented on Jan 11, 2015

    @Martii
    Member

    Closing from #503 and #505 ... reopen if necessary.

  17. jesus2099 commented on Jan 5, 2016

    @jesus2099

    Thanks very much, @Martii !
    I unfortunately hadn’t notice your fix earlier than yesterday (jesus2099/konami-command@37c5bd2).
    That’s working great !

  18. locked as resolved and limited conversation to collaborators on Apr 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    UIPertains inclusively to the User Interface.bugYou've guessed it... this means a bug is reported.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions