openhantek
openhantek copied to clipboard
Laptop 1366x768 UI jumping
Hi One more issue with old hardware (old but still a lot of devices with height 768). It's display size 1366x768 actually the problem is height 768. The docks from the right side not fitting into screen and as result when you try to click on it it's jumping up after click and again down after another click.
So launch app and you will see this:

Try to grab something or simply click in the window, cause elements runaway from your mouse and jump window:

And it will behave in such way for each click. Window without top part o window without bottom with hard way to click something. As result it's almost impossible to grab some dock and group them to make height less.
Sure the best solution it's place docks into qscrollarea but it's need more changes. . Partial solution it's to use qt5ct tool and go to Fonts tab where you need to reduce font size. After setting font to 10px application still doesn't fit.
The jumping still will be there. So we can minimize margins between elements for docks and main window layout by setting up top and bottom margin to zero:
setContentsMargins(1,0,1,0);
And here you can see result:

It still looks good on large screens and fit onto 768 height
ok here we go another stupid attempt to fit everything fine into any screen )))
now scrollbar not pretty way. but it works
here image
