NeedToKnow

133 - Buff/Debuff Input Field Not Enough Characters

What steps will reproduce the problem?
1. Try to create a bar for "Serpent Sting"

What is the expected output? What do you see instead?

To Create Bar

What version of the product are you using?

Latest release to curse client as of 8/30/2012

Do you have an error log of what happened?

No error, just can't create because of a lack of character spaces available.

Please provide any additional information below.

The input field seems to lack the space required/needed to be able to create a bar for serpent sting.  I run out of character space at I think either "Serpent Stin" or "Serpent Sti"

User When Change
Kitjan May 23, 2013 at 16:18 UTC
Kitjan Oct 08, 2012 at 06:53 UTC
Kitjan Sep 02, 2012 at 22:11 UTC
Kitjan Aug 31, 2012 at 15:32 UTC
kdense Aug 31, 2012 at 14:34 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 9 comments
  • Avatar of Kitjan Kitjan May 23, 2013 at 16:18 UTC - 0 likes

    Still no idea why it would sometimes get a bogus small value, but for 4.0.14 I explicitly set it to 0 (which means no limit.)

    However, if Farmbuyer's code snippet is accurate, then 0 may not work for the people affected.

  • Avatar of Kitjan Kitjan Dec 30, 2012 at 17:18 UTC - 0 likes

    @Farmbuyer: Go

    Then why does it work most of the time? I've never seen the shortened entry field, for example.

  • Avatar of Farmbuyer Farmbuyer Dec 26, 2012 at 19:00 UTC - 0 likes

    Nothing inherited from a previous dialog; it's just that if the settings table doesn't contain an entry for maxLetters at all, then you get the default from the XML, which is very short:

        -- Set the editbox of the dialog
        local editBox = _G[dialog:GetName().."EditBox"];
        if ( info.hasEditBox ) then
            editBox:Show();
    
            if ( info.maxLetters ) then
                editBox:SetMaxLetters(info.maxLetters);
                editBox:SetCountInvisibleLetters(info.countInvisibleLetters);
            end
            if ( info.maxBytes ) then
                editBox:SetMaxBytes(info.maxBytes);
            end
            editBox:SetText("");
            if ( info.editBoxWidth ) then
                editBox:SetWidth(info.editBoxWidth);
            else
                editBox:SetWidth(130);
            end
        else
            editBox:Hide();
        end
    
  • Avatar of Kitjan Kitjan Oct 08, 2012 at 06:53 UTC - 0 likes

    Interesting, you think I'm inheriting the length limit from some previous dialog? I'll see about setting a limit explicitly then. Thanks for looking into your repro!

  • Avatar of Farmbuyer Farmbuyer Oct 03, 2012 at 07:14 UTC - 0 likes

    I'm seeing it while trying to edit pre-MoP auras. The actual string (a couple of buffs, both with long names and a comma between) is still in the savedvar file, but the displayed value in the editbox is cut short.

    Looking at the popup definition of NEEDTOKNOW.CHOOSENAME_DIALOG, there's an editBoxWidth of 300, and a commented-out setting of maxLetters. I can't find a default setting of maxLetters in the bliz UI code, but setting it to the max of 255 in my local copy of NTK works. (The width is in pixels, and the max limit is in characters.)

  • Avatar of Kitjan Kitjan Sep 13, 2012 at 23:10 UTC - 0 likes

    Very interesting. Thank you for the info, Nemain_Kargath.

  • Avatar of Nemain_Kargath Nemain_Kargath Sep 13, 2012 at 08:23 UTC - 0 likes

    I am having the same issue trying to configure a bar for "Hunter's Mark" on my hunter I have enough spaces to type "Hunter's Mar" before I run out of spaces. The cursor will just not move forward in the window. It does not seem to affect older bars I set up before the patch 5.04. For example I have an old serpent sting bar that works but trying to make a new one stops me at "Serpent Stin" Logged on to another character and it was working fine. Relogging to my hunter after that seemed to remove the problem and I could type the whole debuff out again. May just be a one off bug.

  • Avatar of Kitjan Kitjan Sep 02, 2012 at 22:11 UTC - 0 likes

    You can compare to the way it looks for me, which is the same as in this video my guild's hunter put together: https://www.youtube.com/watch?v=ZLTGKcHRw70&feature=vmdshb

  • Avatar of Kitjan Kitjan Aug 31, 2012 at 15:32 UTC - 0 likes

    Thank you for the ticket! You're the second person to report this, now, but it doesn't work like that for me! Makes it very hard to fix :(

    Does it not let you keep typing when you hit the end of the text entry? Does it happen for you even if you have no other addons enabled? Could you attach a screenshot?

    Last edited Aug 31, 2012 by Kitjan
  • 9 comments

Facts

Last updated
May 23, 2013
Reported
Aug 31, 2012
Status
Waiting - Waiting for more information.
Type
Defect - A shortcoming, fault, or imperfection
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees