Ability to set Tree Group width in AceConfig #624


  • Enhancement
Open
  • applebanditwow created this issue Jan 18, 2023

    Hello,

     

    I wanted to change the width of a tree group container in AceConfig, but found that there was no option to do this.

     

    I have written the code below to add this feature. Is it possible to add this to Ace3?

     

    ### AceConfigDialog-3.0.lua, after line 1721 ###
    
    if (group.treeWidth ~= nil) then
    	tree:SetTreeWidth(group.treeWidth)
    end
    
    
    ### AceConfigRegistry-3.0.lua, update typedkeys.group ###
    
    group={
    	args=istable,
    	plugins=opttable,
    	inline=optbool,
    	cmdInline=optbool,
    	guiInline=optbool,
    	dropdownInline=optbool,
    	dialogInline=optbool,
    	childGroups=optstring,
    	treeWidth=optnumber,
    },
    
    
    ### Example of usage ###
    
    myConfigDialog = {
    	name = "myAddon",
    	handler = myAddon,
    	type = "group",
    	childGroups = "tree",
    	treeWidth = 210,
    	args = {}
    }
  • applebanditwow added a tag Enhancement Jan 18, 2023

To post a comment, please login or register a new account.