Question about windowlists
I have a windowlist defined as follows:
Code:
<windowlist name="groupslist">
<anchored>
<top anchor="bottom" parent="groupslist_heading_name_label" offset="-1" />
<left anchor="left" parent="groups_label" offset="-10" />
<right anchor="right" parent="groups_label" offset="10" />
<bottom anchor="bottom" />
</anchored>
<frame name="metalplate" />
<child>
<frame name="groupbox"/>
</child>
<class>skill_main_group_item</class>
<datasource>.groupslist</datasource>
<allowcreate />
<allowdelete />
<ownedonly />
<script>
function onInit()
if super and super.onInit then
super.onInit();
end
window.update();
end
function update()
for _,w in ipairs(getWindows()) do
w.update();
end
end
</script>
</windowlist>
Everything looks fine, except when the window the windowlist is on changes size or the number of items in the list is larger than the area given to the windowlist.
If the containing window is made smaller, then the frames around the child items in the windowlist end up going outside of the window list area.
Only the frame is going outside of the normal viewing area, the other items in the child window are disappearing as they go outside the proper viewing area.
I've tried finding a question about this, but not found one. This has to have been asked before on how to fix this.
Another question. The space between list items, how do I make it smaller?