ModDota / BugTracker

Listing bugs for Dota 2 Custom Games
9 stars 1 forks source link

DOTAAvatarImage and elements inside it can't be styled by css #121

Open DoctorGester opened 7 years ago

DoctorGester commented 7 years ago
var avatar = $.CreatePanel("DOTAAvatarImage", playerPanel, "");
avatar.steamid = player.steamId64.toString();
avatar.AddClass("RankedSeasonCongratulationsPlayerAvatar");
.RankedSeasonCongratulationsPlayerAvatar
{
    align: center center;
    width: 56px;
    height: 56px;
    border-radius: 3px;
    border: 1px solid gold;
    margin-bottom: 16px;
    tooltip-position: bottom;
    tooltip-body-position: 50% 100%;
}

The class is seemingly applied in the debugger but does not work. It won't work even through indirect selector (.ParentPanel > DOTAAvatarImage) or id selector. Same applies for all children added to this panel. Not cool.