1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-19 21:23:52 +00:00

Fix the spell icon panel being visible when it shouldn't.

This commit is contained in:
scrawl 2013-03-27 18:04:15 +01:00
parent 406488d086
commit 564256c4e1

View file

@ -139,12 +139,13 @@ namespace MWGui
}
}
parent->setVisible(effects.size() != 0);
int w=2;
if (adjustSize)
{
int s = effects.size() * 16+4;
if (!effects.size())
s = 0;
int diff = parent->getWidth() - s;
parent->setSize(s, parent->getHeight());
parent->setPosition(parent->getLeft()+diff, parent->getTop());