Cog icon indicating copy to clipboard operation
Cog copied to clipboard

Minor bug: Year column cannot be resized

Open GaryElshaw opened this issue 2 years ago • 10 comments

Describe I had a look in MainMenu.xib -> Base.lproj and can't see why it's doing it, but there is maybe either a missing or misplaced <tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/> or a <autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES" flexibleMaxY="YES"/> for 'Year'. It can't presently be moved from 'Genre'.

To Reproduce (delete if not applicable) Steps to reproduce the behavior:

  1. Go to 'Year' in the main window
  2. Click on the divider with 'Genre' and try to move it.

Expected behavior the column should be resizable

Screenshots

SCR-20220610-q3e

Version information:*

  • macOS version: 12.4
  • Cog version: 2221 (2221-gaca29e47)

Additional context Add any other context about the issue here.

GaryElshaw avatar Jun 10 '22 06:06 GaryElshaw

Genre currently has a minimum width of 96.

kode54 avatar Jun 19 '22 03:06 kode54

No matter which other column it sits next to, it sits this hard and can't be moved :-(

Text alignment?

SCR-20220619-n0o

GaryElshaw avatar Jun 19 '22 04:06 GaryElshaw

I really have no idea, it must be the genre column. Something is different about it, compared to other columns.

kode54 avatar Jun 19 '22 06:06 kode54

Does anyone know what's up with this? I'm not resetting constraints on the playlist view, either, as every time I do that, it breaks the status icon column.

kode54 avatar Jul 03 '22 05:07 kode54

Line 397? alignment="right"

<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="1512">

GaryElshaw avatar Jul 03 '22 07:07 GaryElshaw

What does the alignment have to do with the ability to resize it?

kode54 avatar Jul 03 '22 07:07 kode54

I'm looking for anomalies.

GaryElshaw avatar Jul 03 '22 07:07 GaryElshaw

Oh, thanks then. Also, alignment and sizing is controlled by the code that creates the views in PlaylistController.m, lines 407-530. The translation of identifiers to index numbers is handled by the array created at line 48.

kode54 avatar Jul 03 '22 07:07 kode54

Number (No.) and 'Rating' also seem to have the same bug. I'm using Cog 2514 (2514-g6a463893).

GaryElshaw avatar Jul 03 '22 08:07 GaryElshaw

Please try again. This may have been an older Xcode bug.

kode54 avatar Oct 09 '23 01:10 kode54