Skip to content
This repository was archived by the owner on Jun 6, 2025. It is now read-only.
This repository was archived by the owner on Jun 6, 2025. It is now read-only.

style.column_alignments don't work at gui creation #57

Description

@YPetremann

Description

No error from logs

Reproduction

style_mods.column_alignments don't work at gui creation, because it's not writtable but its attributes can be written

Use:

for key, value in pairs(style_mods) do
  if key == "column_alignments" then
    for ikey, ivalue in ipairs(value) do
      elem.style.column_alignments[ikey] = ivalue
    end
  else
    elem.style[key] = value
  end
end

Or:

if style_mods.column_alignments then
  for ikey, ivalue in ipairs(style_mods.column_alignments) do
    elem.style.column_alignments[ikey] = ivalue
  end
  style_mods.column_alignments=nil
end
for key, value in pairs(style_mods) do
  elem.style[key] = value
end

Instead of:

for key, value in pairs(style_mods) do
  elem.style[key] = value
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions