Skip to content

Geyser flyout labels - LV layout is buggy #837

@vadi2

Description

@vadi2

From @vadi2 on March 3, 2017 5:51

-- create a label with a nestable=true property to say that it can nest labels
label0 = Geyser.Label:new({name="label0", 
  x="50%",y="50%",height=50,width=300,nestable=true, 
  message="<center>Clicky clicky</center>"})
 
-- and add 3 labels to it with LV layout - so Left of the label, aligned Vertically
label1 = label0:addChild({name="label1",height=30,width=70, layoutDir="LV", flyOut=true, message="label one"})
label1:setStyleSheet([[background-color: purple;  border-width: 2px;  border-style: solid;  border-color: blue;  border-radius: 2px;  font-size: 7pt;]])

label2 = label0:addChild({name="label2",height=30,width=70, layoutDir="LV", flyOut=true, message="label two"}) 
label2:setStyleSheet([[background-color: green;  border-width: 2px;  border-style: solid;  border-color: blue;  border-radius: 2px;  font-size: 7pt;]])

label3 = label0:addChild({name="label3",height=30,width=70, layoutDir="LV", flyOut=true, message="label three"})
label3:setStyleSheet([[background-color: red;  border-width: 2px;  border-style: solid;  border-color: blue;  border-radius: 2px;  font-size: 7pt;]])

selection_018

Labels need to be attached to the main one.

Copied from original issue: vadi2/mudlet-lua#21

Metadata

Metadata

Assignees

No one assigned

    Labels

    Lua onlyIssues with this label can be fixed by solely modifying lua code

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions