mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2026-03-13 09:24:25 +08:00
Issue #2249: call FixVT() in FormCreate consequently, so the trees do not change their row height after the second use. Also increase TextMargin and reduce Margin.
This commit is contained in:
@@ -272,6 +272,10 @@ begin
|
||||
editName.MaxLength := NAME_LEN;
|
||||
FAlterRestrictedMessageDisplayed := False;
|
||||
btnSave.Hint := ShortCutToText(MainForm.actSaveSQL.ShortCut);
|
||||
FixVT(listColumns);
|
||||
FixVT(treeIndexes);
|
||||
FixVT(listForeignKeys);
|
||||
FixVT(listCheckConstraints);
|
||||
end;
|
||||
|
||||
|
||||
@@ -283,10 +287,6 @@ begin
|
||||
inherited;
|
||||
FLoaded := False;
|
||||
|
||||
FixVT(listColumns);
|
||||
FixVT(treeIndexes);
|
||||
FixVT(listForeignKeys);
|
||||
FixVT(listCheckConstraints);
|
||||
// Try the best to auto fit various column widths, respecting a custom DPI setting and a pulldown arrow
|
||||
listColumns.Header.Columns[2].Width := Mainform.Canvas.TextWidth('GEOMETRYCOLLECTION') + 6*listColumns.TextMargin;
|
||||
listColumns.Header.Columns[7].Width := Mainform.Canvas.TextWidth('AUTO_INCREMENT') + 4*listColumns.TextMargin;
|
||||
|
||||
Reference in New Issue
Block a user