GithubHelp home page GithubHelp logo

Comments (2)

fruxo avatar fruxo commented on June 24, 2024

No there isn't.
TBEditField::UpdateScrollbarVisibility is always setting y-scrollbar depending on "multiline && !m_adapt_to_content_size". Adding SCROLL_MODE to it would be nice IMO. Another personal wish i have is mobile-style scrollbars (that takes no space and fades in/out only when scrolled).

There is a workaround though. You could wrap it in TBScrollContainer which already has SCROLL_MODE like this:

TBScrollContainer
    scroll-mode off
    adapt-to-content 1
    TBEditField
        text yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada yada
        multiline 1
        readonly 1
        adapt-to-content 1
        virtual-width 300dp
        skin

from turbobadger.

fruxo avatar fruxo commented on June 24, 2024

Oh, and now i realize that was overly complicated since you always wanted scrollbars off. So you can just skip the whole part wrapping it in a TBScrollContainer and use the adapt-to-content attribute :)
virtual-width will guide the initial measuring so that wrapping happens at that limit by default (but still allowing it to wrap somewhere else within its min and max constraints)

from turbobadger.

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.