MudletM
Mudlet4y ago
Edru

there is no 'official\proper' way to do it but a bit a hacky way. Adjusting a bit from the example a

there is no 'official\proper' way to do it but a bit a hacky way. Adjusting a bit from the example at https://github.com/Mudlet/Mudlet/issues/5321#issuecomment-939435185
myContainer = myContainer or Adjustable.Container:new({name = "myContainer", width = 100, height = 100})

function myContainer:toggleFixedSize()
  if not self.FixedSize then
    self.connectedToBorder = {}
    self.connectedToBorder.bottom = true
    self.connectedToBorder.left = true
    self.connectedToBorder.top = true
    self.connectedToBorder.right = true
    self:setAbsolute(true)
    self.FixedSize = true
  else
    self.connectedToBorder = {}
    self.FixedSize = false
  end
end
you can then use
myContainer:toggleFixedSize()
to toggle making it movable but not resizable
GitHub
Brief summary of issue / Description of requested feature: Adjustable container sometimes changes size when Mudlet window does Steps to reproduce the issue / Reasons for adding feature: Create a ne...
Was this page helpful?