Comments (6)
I'm happy that it's working! :)
I will figure out something for scrollbar.
from lvgl.
It really doesn't work properly. I will fix it on Monday. Until that please try this: lv_obj_set_style(lv_page_get_scrl(ta), &style)
it will set the style of the transparent scrollable part of text area. Use LV_STYLE_TRANSP_TIGHT as starting point.
vpad and hpad now do not affect the scrollbar position but it is a good idea to do that!
from lvgl.
Now the label's position should be affected by hpad and vpad.
Can you test it?
How do you imagine the scrollbar and hpad/vpad relationship?
from lvgl.
Now the label's position should be affected by hpad and vpad.
Can you test it?
No problem.
After testing, It works now, thank you!
How do you imagine the scrollbar and hpad/vpad relationship?
Sorry, I'm not familiar with them. I guess it can change hpad/vpad to adjust the position of scrollbar.
from lvgl.
In beta scrollbar positions are affected by style.body.padding.hor
and style.body.padding.hor
.
(Please update you misc_conf.h
and lv_conf.h
from misc_conf_templ.h
and lv_conf_templ.h
)
Like this:
static lv_style_t sb_style;
lv_style_copy(&sb_style, &lv_style_plain_color);
sb_style.body.padding.hor = -15;
sb_style.body.padding.ver = 15;
lv_obj_t *page = lv_page_create(lv_scr_act(), NULL);
lv_page_set_style(page, LV_PAGE_STYLE_SB, &sb_style);
lv_page_set_sb_mode(page, LV_SB_MODE_ON);
lv_page_set_scrl_fit(page, true, true);
lv_obj_set_size_scale(page, 100, 200);
lv_obj_set_pos_scale(page, 10, 10);
lv_obj_t *label = lv_label_create(page, NULL);
lv_label_set_text(label, "long long lines\n\n"
"to shows the\n\n"
"scrollbars'\n\n"
"position.\n\n"
"Some dummy text\n\n"
"Some dummy text\n\n"
"Some dummy text\n\n");
from lvgl.
Added in v5.0.0
from lvgl.
Related Issues (20)
- The chart with the faded area line cannot display the value pop-up when pressing a point? HOT 3
- `lv_obj_set_property()` with selector HOT 8
- stm32u5g9j-dk1 HOT 3
- Warning C4200 occurs frequently during build on VisualStudio. HOT 1
- Bar rotates automatically to horizontally if width>heigth HOT 3
- Compilation error using VG-Lite HOT 9
- [NOT A BUG] Label of List can't be centered. HOT 2
- [scale] Be able to configure the part drawing order
- LVGL Forum SPAMMER HOT 6
- Object Rotation for Binary Images HOT 5
- Incomplete implementation of lv_canvas_set_px() for indexed color format HOT 5
- The display will not receive the input event like press and release if a new screen is loaded. HOT 5
- Compilation error using PXP HOT 16
- Draw line using VG-Lite HOT 5
- Mosaic HOT 2
- Scrolling does not respect padding of parent. HOT 5
- Automatioc check for broken links in documentation HOT 4
- How to display Thai on the interface HOT 4
- Recoloring in V9 HOT 1
- ESP32 Rotate doesn't work HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lvgl.