34 - Colspans don't widen tooltip properly

When a colspan is the widest element in the tooltip, the tooltip's width is not calculated properly. The tooltip does get wider, but not wide enough. In my particular case, I have a tooltip with 4 columns, and the colspan has a width of 3. I've attached two screenshots. One shows the actual output, the other shows the approximate expected output (it has too much space on the right, but w/e). I haven't investigated thoroughly, but I wouldn't be surprised if the colspan is calculating the tooltip width assuming it spans all the columns, but it really only spans 3 of them and therefore it ends up being too narrow for its text.

Name Size MD5
tooltip.lua 1.0 KiB 4ee1fa79dd8e...
  • Actual.png
    Actual output
  • Expected.png
    Expected output
User When Change
eridius Jan 23, 2013 at 07:11 UTC

Added attachment tooltip.lua

eridius Jan 23, 2013 at 07:06 UTC

Added attachment Expected.png

eridius Jan 23, 2013 at 07:06 UTC

Added attachment Actual.png

eridius Jan 23, 2013 at 07:06 UTC Create

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

  • Avatar of eridius eridius Jan 23, 2013 at 10:22 UTC - 0 likes

    After reading some of the code, it's clear that LibQTip doesn't really expect to handle layout with different horizontal margins on the columns. The fact that this tooltip has a 0 margin between the first and second columns may be a contributing factor.

  • Avatar of eridius eridius Jan 23, 2013 at 07:12 UTC - 0 likes

    I've uploaded the code that was used to create this tooltip. It's designed to run from within WowLua, so it replaces the visible GameTooltip.



Last updated
Jan 23, 2013
Jan 23, 2013
New - Issue has not had initial review yet.
Defect - A shortcoming, fault, or imperfection
Medium - Normal priority.

Reported by

Possible assignees