mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 17:38:44 +00:00
Changed: Force max table width if requested.
--HG-- branch : develop
This commit is contained in:
parent
bff8ed488e
commit
a47a481c7a
1 changed files with 7 additions and 0 deletions
|
@ -1209,6 +1209,13 @@ namespace NLGUI
|
|||
// ----------------------------------------------------------------------------
|
||||
sint32 CGroupTable::getMaxUsedW() const
|
||||
{
|
||||
// Return table width if its requested by user.
|
||||
// Need to do this because width of long line of text in here is calculated
|
||||
// differently than final cell width in updateCoords()
|
||||
// This will break tables with too narrow width set by user.
|
||||
if (ForceWidthMin > 0)
|
||||
return ForceWidthMin;
|
||||
|
||||
uint i;
|
||||
uint column = 0;
|
||||
vector<sint32> columns;
|
||||
|
|
Loading…
Reference in a new issue