Data grid frame is hidden after reducing the height of the window

chengj's profile image chengj posted 5 months ago in General Permalink

OS: win11 22H2

HeidiSQL: 12.6.0.6765

How to reproduce :

  1. Make window full screen
  2. Resize the height of data grid to less than 50%
  3. Resize the height of window smaller and smaller until the data grid disappear

Usually,we can resize the window to full screen to find the data grid.

But in one case, I can't restore it:

The resolution of my laptop is 1600 x 900, and the resolution of the external monitor is 2560 x 1440.

I use heidisql on the company's wider screen.

And when I go home and open heidisql, I can never see the data grid with my mini laptop.

ansgar's profile image ansgar posted 5 months ago Permalink

Can you please post a screenshot from the smaller full screen situation?

chengj's profile image chengj posted 5 months ago Permalink

These are screenshots of the two displays, and I haven't changed the layout of any app windows.

2 attachment(s):
  • heidisql-1699-857
  • heidisql-2560-1440
ansgar's profile image ansgar posted 5 months ago Permalink

You can make the sql editor smaller when you're on the bigger screen.

On the smaller screen, you can reset the editor height only by editing C:\Users\youruser\AppData\Roaming\HeidiSQL\tabs.ini (while HeidiSQL is not running!):

[2021-05-07_14-22-57-692]
BackupFilename=C:\Users\.....sql
pid=3292
EditorHeight=490 <= set this to 100
HelpersWidth=465
TabFocused=0
EditorTopLine=31
chengj's profile image chengj posted 5 months ago Permalink

Thanks! It works.

Is there a plan to automatically adjust the editor height according to the zoom ratio ?

ansgar's profile image ansgar posted 5 months ago Permalink

I have the idea to create a new menu item in the "Tools" menu, let's say "Reset panel dimensions", which does exactly what you did, and a bit more.

Code modification/commit 5755c3a from Ansgar Becker <anse@heidisql.com>, 5 months ago, revision 12.6.0.6778
Add item in Tools main menu for resetting panels to their default dimensions. Useful for quite a few people who move their app window between screens with different resolutions. See https://www.heidisql.com/forum.php?t=41505
ansgar's profile image ansgar posted 5 months ago Permalink

So with the next nightly build, you will just need to click Tools > Reset panel dimensions, which will set relevant components to their default dimensions. Note that these defaults are quite small, to still support users with small screen resolutions. However, you should be able to see everything after that click.

Description

chengj's profile image chengj posted 5 months ago Permalink

That's great. That's a pretty perfect plan. Thank you for everything you do.

Please login to leave a reply, or register at first.