Electorrent icon indicating copy to clipboard operation
Electorrent copied to clipboard

Main windows does not adust the table element correctly when resizing window.

Open aTosser opened this issue 5 years ago • 6 comments

Client:

  • [ ] µTorrent
  • [X] qBittorrent
  • [ ] Transmission
  • [ ] rTorrent

Client Version: 4.1.5 Operating System: Gentoo Linux Application Version: 2.5.2 Description: When I resize the window from fullscreen the table element does not snap to the first column (name in this case) it snaps to the second column (size in this case).

aTosser avatar Jan 06 '19 18:01 aTosser

I will investigate and see if I can reproduce this error, although I think it might be exclusive to linux based systems.

Does resizing the window afterwards fix the issue?

tympanix avatar Jan 06 '19 23:01 tympanix

If I maximize, the columns return to the correct proportions. But simply resizing the window does not.

aTosser avatar Jan 17 '19 04:01 aTosser

After some playing around it seems that if the window is of a certain size or smaller (seems to be determined by scaling) the colums resize like one would expect but when columns are being sacrificed for screen real estate, the column that seems to be the "Never get rid of me column" or as Iewmore useful column.) It would be nice if we could specify a priority for which columns should maintain their sizes. That may be asking for too much. Just a fix to have name be the primary column would be nice.

electorrent-huge electorrent-large electorrent-small electorrent-tiny

These screenshots ilustrate my point better that I could.

aTosser avatar Mar 12 '19 09:03 aTosser

After mucking my way through the JS and friends, I believe the cause of this is in main.less:

.action.header .actions.right { overflow: hidden; width: auto; display: block; }

There seems to be no minimum size constraints on the minumim width, or perhaps it is an issue with overflow... I dunno, these are not my languages of choice.

I will stop poking your issue tracker.

aTosser avatar Mar 12 '19 10:03 aTosser

The name column should be the primary column, and work like you describe above. I believe this works on other operating system (maybe the Chrome version on linux is the problem here). You can try other resizing modes in the settings to see if some of them works better for you.

I will have to compare across operating systems to figure this one out. Thanks for taking your time to investigate 👍

tympanix avatar Mar 14 '19 11:03 tympanix