Merge with develop
--HG-- branch : experimental-ui-scaling
This commit is contained in:
commit
31ad00a241
2 changed files with 6 additions and 2 deletions
|
@ -2473,7 +2473,7 @@ namespace NLGUI
|
||||||
|
|
||||||
if (_LayerSetup == 0)
|
if (_LayerSetup == 0)
|
||||||
{
|
{
|
||||||
_List->forceSizeW(_W - pLayer->W_M_Open);
|
_List->forceSizeW(_W - (pLayer->W_M_Open + pLayer->W_R) );
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -2748,6 +2748,9 @@ namespace NLGUI
|
||||||
if (_Content != NULL)
|
if (_Content != NULL)
|
||||||
h += _Content->getHReal();
|
h += _Content->getHReal();
|
||||||
|
|
||||||
|
if (_List != NULL)
|
||||||
|
h += _List->getHReal();
|
||||||
|
|
||||||
h -= _ContentYOffset;
|
h -= _ContentYOffset;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -925,7 +925,8 @@ namespace NLGUI
|
||||||
return maxw;
|
return maxw;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return std::min(_Parent->getInnerWidth(), (sint)_LineMaxW);
|
sint offset = (sint)_XReal - (sint)_Parent->getXReal();
|
||||||
|
return std::min(_Parent->getInnerWidth() - offset, (sint)_LineMaxW);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue