mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
High DPI: fix growing window dimensions on each opening. Related to #378
This commit is contained in:
@ -264,10 +264,10 @@ procedure TfrmSQLhelp.FormDestroy(Sender: TObject);
|
||||
begin
|
||||
AppSettings.WriteInt(asSQLHelpWindowLeft, Left );
|
||||
AppSettings.WriteInt(asSQLHelpWindowTop, Top );
|
||||
AppSettings.WriteInt(asSQLHelpWindowWidth, Width );
|
||||
AppSettings.WriteInt(asSQLHelpWindowHeight, Height );
|
||||
AppSettings.WriteInt(asSQLHelpPnlLeftWidth, pnlLeft.Width );
|
||||
AppSettings.WriteInt(asSQLHelpPnlRightTopHeight, memoDescription.Height );
|
||||
AppSettings.WriteInt(asSQLHelpWindowWidth, Round(Width / DpiScaleFactor(Self)));
|
||||
AppSettings.WriteInt(asSQLHelpWindowHeight, Round(Height / DpiScaleFactor(Self)));
|
||||
AppSettings.WriteInt(asSQLHelpPnlLeftWidth, Round(pnlLeft.Width / DpiScaleFactor(Self)));
|
||||
AppSettings.WriteInt(asSQLHelpPnlRightTopHeight, Round(memoDescription.Height / DpiScaleFactor(Self)));
|
||||
SqlHelpDialog := nil;
|
||||
end;
|
||||
|
||||
|
Reference in New Issue
Block a user