We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a8f11d commit df51526Copy full SHA for df51526
1 file changed
internal_filesystem/apps/com.micropythonos.camera/assets/camera_settings.py
@@ -165,16 +165,17 @@ def create_checkbox(self, parent, label_text, default_val, pref_key):
165
def create_dropdown(self, parent, label_text, options, default_idx, pref_key):
166
"""Create dropdown with label."""
167
cont = lv.obj(parent)
168
- cont.set_size(lv.pct(100), 60)
169
- cont.set_style_pad_all(3, 0)
+ cont.set_size(lv.pct(100), lv.SIZE_CONTENT)
+ cont.set_style_pad_all(2, 0)
170
171
label = lv.label(cont)
172
label.set_text(label_text)
173
- label.align(lv.ALIGN.TOP_LEFT, 0, 0)
+ label.set_size(lv.pct(50), lv.SIZE_CONTENT)
174
+ label.align(lv.ALIGN.LEFT_MID, 0, 0)
175
176
dropdown = lv.dropdown(cont)
- dropdown.set_size(lv.pct(90), 30)
177
- dropdown.align(lv.ALIGN.BOTTOM_LEFT, 0, 0)
+ dropdown.set_size(lv.pct(50), lv.SIZE_CONTENT)
178
+ dropdown.align(lv.ALIGN.RIGHT_MID, 0, 0)
179
180
options_str = "\n".join([text for text, _ in options])
181
dropdown.set_options(options_str)
0 commit comments