mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Set and fetch default height of PageControl via constant rather than from the control itself, as that may not be created that early. A minimal chance that this fixes issue #1995.
This commit is contained in:
@ -114,6 +114,7 @@ const
|
||||
REGNAME_SQLHELPPLWIDTH = 'SQLHelp_PnlLeftWidth';
|
||||
REGNAME_SQLHELPPRHEIGHT = 'SQLHelp_PnlRightTopHeight';
|
||||
REGNAME_TABLEEDITOR_TABSHEIGHT = 'TableEditorTabsHeight';
|
||||
DEFAULT_TABLEEDITOR_TABSHEIGHT = 150;
|
||||
REGNAME_HOST = 'Host';
|
||||
DEFAULT_HOST = '127.0.0.1';
|
||||
REGNAME_USER = 'User';
|
||||
|
@ -217,7 +217,7 @@ const
|
||||
constructor TfrmTableEditor.Create(AOwner: TComponent);
|
||||
begin
|
||||
inherited;
|
||||
PageControlMain.Height := GetRegValue(REGNAME_TABLEEDITOR_TABSHEIGHT, PageControlMain.Height);
|
||||
PageControlMain.Height := GetRegValue(REGNAME_TABLEEDITOR_TABSHEIGHT, DEFAULT_TABLEEDITOR_TABSHEIGHT);
|
||||
FixVT(listColumns);
|
||||
FixVT(treeIndexes);
|
||||
FixVT(listForeignKeys);
|
||||
|
Reference in New Issue
Block a user