Pullot of AceGUIWidget-DropDown moves texture when text is cut off #628


Open
  • muehedev created this issue Apr 6, 2023

    In the following screenshot you can see the textures in front of "Event Quest Complete" and "pfQuest Codex node cut" being moved a bit to the top relative to where they should be. This seems to happen only to the lines where text is cut off at the end.

     

    pullout bug

     

    This hack fixes the problem but isn't a good solution of course:

     

    diff --git a/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua b/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua
    index 59c7f53b..e04d9fca 100644
    --- a/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua
    +++ b/Libs/AceGUI-3.0/widgets/AceGUIWidget-DropDown.lua
    @@ -378,7 +378,7 @@ do
                           AceGUI:ClearFocus()
                   else
                           self.open = true
    -                       self.pullout:SetWidth(self.pulloutWidth or self.frame:GetWidth())
    +                       self.pullout:SetWidth(self.pulloutWidth or self.frame:GetWidth() + 50)
                           self.pullout:Open("TOPLEFT", self.frame, "BOTTOMLEFT", 0, self.label:IsShown() and -2 or 0)
                           AceGUI:SetFocus(self)
                   end

     

    We are creating these drop-down menus from a TreeTable[1], didn't find a way to set pulloutWidth with that, if there is please let me know.

     

    [1]: https://github.com/Questie/Questie/blob/master/Modules/Options/GeneralTab/QuestieOptionsGeneral.lua#L338

  • muehedev edited title and description Apr 6, 2023
  • nevcairiel posted a comment May 16, 2023

    In-line texture elements are entirely controlled by Blizzards rendering functions. I don't think there is any influence we have over them to fix the rendering.

     

    Dropdowns should always have the width of the dropdown control, I believe, so if you make that wider it might fix it - but of course this has a certain impact on the overall UI structure.


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