Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Behind the Scenes
  3. Qt.io webservices
  4. scroll boxes around code are redundant and annoying
Forum Updated to NodeBB v4.3 + New Features

scroll boxes around code are redundant and annoying

Scheduled Pinned Locked Moved Unsolved Qt.io webservices
14 Posts 5 Posters 2.7k Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Kent-DorfmanK Kent-Dorfman

    Eh.
    @J.Hilk said in scroll boxes around code are redundant and annoying:

    To be honest, I find it quite useful, the way it is.

    The forum lacks a "spoiler" feature and the limited space inside the code view helps (me) to read the posts better.

    More often than not, example code is in-between text blocks and most of the time the text is coherent.

    Eh...I find that in the stuff I read the use case is more often someone dumps their whole module for inspection and then requires constantly paging back and forth inside a small scroll block to actually see their logic. Again, redundant since I have control over the browser scroll window size and can expand it to see enough of their code to make some sense out of it. The active thread about TCP streaming of video frames is a prime example. I cannot even see a complete function the OPs code posting under the current scheme.

    I don't expect it to change but I think for use old pre-gui dinosaurs it seems a silly design: scroll block within scroll block.

    JKSHJ Offline
    JKSHJ Offline
    JKSH
    Moderators
    wrote on last edited by
    #5

    @Kent-Dorfman said in scroll boxes around code are redundant and annoying:

    I find that in the stuff I read the use case is more often someone dumps their whole module for inspection and then requires constantly paging back and forth inside a small scroll block to actually see their logic.

    May I suggest a workaround: Copy+paste the block of code into Notepad++ (or your IDE). I always have an instance of N++ open for various uses. It also has better syntax highlighting than this forum

    Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

    1 Reply Last reply
    1
    • ollipuuO Offline
      ollipuuO Offline
      ollipuu
      wrote on last edited by
      #6

      Another way to achieve this is to install a browser extension that allows you to override the styles of any webpage with your own CSS. Just tried quickly with Stylus (for Chrome https://chrome.google.com/webstore/detail/stylus/clngdbkpkpeebahjckkjfobafhncgmne/). From the toolbar button click Write style for: forum.qt.io and then add the following declaration to the stylesheet:

      .topic .posts .content pre {
          max-height: none;
      }
      
      1 Reply Last reply
      4
      • aha_1980A Offline
        aha_1980A Offline
        aha_1980
        Lifetime Qt Champion
        wrote on last edited by aha_1980
        #7

        My problem with the code boxes for now is: I can hardly use them on my smartphone.

        Sometimes I can scroll in a code box, but most often it's impossible to see more than a few characters - especially horizontal.

        While code should not auto-wrap like other text, this feature makes it impossible for me to read larger snippets from my phone.

        Qt has to stay free or it will die.

        ollipuuO 1 Reply Last reply
        1
        • aha_1980A aha_1980

          My problem with the code boxes for now is: I can hardly use them on my smartphone.

          Sometimes I can scroll in a code box, but most often it's impossible to see more than a few characters - especially horizontal.

          While code should not auto-wrap like other text, this feature makes it impossible for me to read larger snippets from my phone.

          ollipuuO Offline
          ollipuuO Offline
          ollipuu
          wrote on last edited by
          #8

          @aha_1980 Well that doesn't sound good. What phone/browser are you using? Can you post a screenshot what it looks like?

          J.HilkJ aha_1980A 2 Replies Last reply
          0
          • ollipuuO ollipuu

            @aha_1980 Well that doesn't sound good. What phone/browser are you using? Can you post a screenshot what it looks like?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on last edited by
            #9

            @ollipuu
            from an iPhoneX
            0_1551775616696_IMG_1A16A9EAC234-1.jpeg

            reference thread:
            https://forum.qt.io/topic/100345/keyword-in


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            aha_1980A 1 Reply Last reply
            1
            • ollipuuO ollipuu

              @aha_1980 Well that doesn't sound good. What phone/browser are you using? Can you post a screenshot what it looks like?

              aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #10

              @ollipuu I'm on the default browser for Jolla.

              Example:

              0_1551777787374_Screenshot_20190305_001.png

              No scrolling possible, that's all codeI can see.

              Regards

              Qt has to stay free or it will die.

              J.HilkJ 1 Reply Last reply
              1
              • J.HilkJ J.Hilk

                @ollipuu
                from an iPhoneX
                0_1551775616696_IMG_1A16A9EAC234-1.jpeg

                reference thread:
                https://forum.qt.io/topic/100345/keyword-in

                aha_1980A Offline
                aha_1980A Offline
                aha_1980
                Lifetime Qt Champion
                wrote on last edited by
                #11

                @J.Hilk Funny that you choosed the same topic as I :)

                Qt has to stay free or it will die.

                1 Reply Last reply
                0
                • aha_1980A aha_1980

                  @ollipuu I'm on the default browser for Jolla.

                  Example:

                  0_1551777787374_Screenshot_20190305_001.png

                  No scrolling possible, that's all codeI can see.

                  Regards

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on last edited by J.Hilk
                  #12

                  @aha_1980 said in scroll boxes around code are redundant and annoying:

                  No scrolling possible, that's all codeI can see.

                  really? that's the opposite to safari on the iPhone, I can't scroll further down until I scrolled through the whole code block!

                  @J.Hilk Funny that you choosed the same topic as I :)

                  great minds think alike cough


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  aha_1980A ollipuuO 2 Replies Last reply
                  1
                  • J.HilkJ J.Hilk

                    @aha_1980 said in scroll boxes around code are redundant and annoying:

                    No scrolling possible, that's all codeI can see.

                    really? that's the opposite to safari on the iPhone, I can't scroll further down until I scrolled through the whole code block!

                    @J.Hilk Funny that you choosed the same topic as I :)

                    great minds think alike cough

                    aha_1980A Offline
                    aha_1980A Offline
                    aha_1980
                    Lifetime Qt Champion
                    wrote on last edited by
                    #13

                    @J.Hilk said in scroll boxes around code are redundant and annoying:

                    really? that's the opposite to safari on the iPhone, I can't scroll further down until I scrolled through the whole code block!

                    Just to be clear: I can scroll through the topic, but the code box is unscrollable for me.

                    Qt has to stay free or it will die.

                    1 Reply Last reply
                    0
                    • J.HilkJ J.Hilk

                      @aha_1980 said in scroll boxes around code are redundant and annoying:

                      No scrolling possible, that's all codeI can see.

                      really? that's the opposite to safari on the iPhone, I can't scroll further down until I scrolled through the whole code block!

                      @J.Hilk Funny that you choosed the same topic as I :)

                      great minds think alike cough

                      ollipuuO Offline
                      ollipuuO Offline
                      ollipuu
                      wrote on last edited by
                      #14

                      @J.Hilk I don't have an iPhone with me, but you should be able to scroll the page by dragging anywhere outside the code block. At least that's how it works in Android Chrome and in Safari dev tools.

                      @aha_1980 Ok, let's see if there's anything we can do about that.

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved