Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DoctorGester opened this issue May 20, 2017 · 0 comments
Open

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

DoctorGester opened this issue May 20, 2017 · 0 comments

Comments

@DoctorGester
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant