Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Lua] Potential issue with widget configure() (empty line) #4321

Closed
Alex00101 opened this issue Aug 1, 2024 · 1 comment
Closed

[Lua] Potential issue with widget configure() (empty line) #4321

Alex00101 opened this issue Aug 1, 2024 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Alex00101
Copy link

Not sure if it was there before 1.5.11 (likely not):

configure handler code (note widget title is set for false):

local function configure(widget)
local line, panel, field
panel = form.addExpansionPanel("Panel 1")
line = form.addLine('Line 1', panel)
field = form.addNumberField(line, nil, 0,1000000, function() return 10 end, function(newValue) end)
end

The configure screen looks line (note the empty line):

image

if I change code to say

local function configure(widget)
local line, panel, field
line = form.addLine('New Line',nil)
panel = form.addExpansionPanel("Panel 1")
line = form.addLine('Line 1', panel)
field = form.addNumberField(line, nil, 0,1000000, function() return 10 end, function(newValue) end)
end

image

@bsongis-frsky bsongis-frsky added the bug Something isn't working label Aug 14, 2024
@bsongis-frsky bsongis-frsky self-assigned this Aug 14, 2024
@bsongis-frsky bsongis-frsky added this to the 1.5.14 milestone Aug 14, 2024
@bsongis-frsky bsongis-frsky modified the milestones: 1.5.14, 1.5.15, 1.5.16 Aug 24, 2024
@bsongis-frsky
Copy link
Collaborator

Reproduced in 1.5.16. Only if the widget has no title!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants