mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-15 22:08:43 +00:00
Fixed: Table colspan overwrites previous row column width
This commit is contained in:
parent
f951a3c3b6
commit
47ef17173d
1 changed files with 5 additions and 4 deletions
|
@ -805,12 +805,13 @@ namespace NLGUI
|
|||
uint newsize = column + cell->ColSpan - 1;
|
||||
if (newsize >= _Columns.size())
|
||||
_Columns.resize(newsize+1);
|
||||
|
||||
for(uint span = 0; span < cell->ColSpan -1; span++){
|
||||
column++;
|
||||
_Columns[column].Width = _Columns[column-1].Width;
|
||||
_Columns[column].WidthMax = _Columns[column-1].WidthMax;
|
||||
_Columns[column].TableRatio = _Columns[column-1].TableRatio;
|
||||
_Columns[column].WidthWanted = _Columns[column-1].WidthWanted;
|
||||
_Columns[column].Width = std::max(_Columns[column].Width, _Columns[column-1].Width);
|
||||
_Columns[column].WidthMax = std::max(_Columns[column].WidthMax, _Columns[column-1].WidthMax);
|
||||
_Columns[column].TableRatio = std::max(_Columns[column].TableRatio, _Columns[column-1].TableRatio);
|
||||
_Columns[column].WidthWanted = std::max(_Columns[column].WidthWanted, _Columns[column-1].WidthWanted);
|
||||
_Columns[column].RowSpan = _Columns[column-1].RowSpan;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue