Git Product home page Git Product logo

Comments (5)

liamHowatt avatar liamHowatt commented on July 2, 2024

Hey. Is this what you're seeing? Or something different? The contents don't appear to be drawn over the borders to me. Thanks for the code snippet!

image

from lvgl.

di-jtrumpower avatar di-jtrumpower commented on July 2, 2024

Thanks for taking time to look at this,

I am not using the premade styles but, yes I am seeing it differently. This is on an stm32L4R9 but I don't think that would matter.

image

from lvgl.

di-jtrumpower avatar di-jtrumpower commented on July 2, 2024

Just changed it from LV_USE_THEME_SIMPLE to LV_THEME_DEFAULT, and it no longer is rendering over the border. There must be some padding style I am missing.

from lvgl.

liamHowatt avatar liamHowatt commented on July 2, 2024

These seem to work!

lv_obj_set_style_border_post(scrollbox, true, LV_PART_MAIN); /* stops the borders being drawn over */
lv_obj_set_style_pad_all(scrollbox, 8, LV_PART_SCROLLBAR); /* moves the scrollbar inward, off the border */

from lvgl.

di-jtrumpower avatar di-jtrumpower commented on July 2, 2024

Thanks, I knew it was something simple!

from lvgl.

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.