Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-163

Ability to set default width for each grid column after clean installation

    XMLWordPrintable

    Details

    • Type: Feature Request
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.1
    • Component/s: Admin Interfaces
    • Labels:
      None
    • Additional information:
      Hide

      How to set correct width for the first time (do only once for this release only):
      1. turn on "DBG_SHOW_PERSISTENTDATA" option in debug.php file.
      2. set correct column width manually resizing columns.
      3. open debugger and locate variable named like this: "<prefix.special>columns.".
      4. copy displayed width values into appropriate unit config.

      Show
      How to set correct width for the first time (do only once for this release only): 1. turn on "DBG_SHOW_PERSISTENTDATA" option in debug.php file. 2. set correct column width manually resizing columns. 3. open debugger and locate variable named like this: "<prefix.special> columns .". 4. copy displayed width values into appropriate unit config.
    • External issue ID:
      201
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      Currently we have ability to manually resize columns for each column in each grid. New column widths are automatically saved and are restored next time administrator will visit administrative console. Problem is, that after clean installation all columns have 100px width by default. For columns, that have long column headers this makes them wrap and makes overall height of column header row larger.

      I propose to add new "width" option to grid column declaration in unit config (Grids -> Fields -> FieldName -> width). This option will only have effect, when administrator haven't visited given grid yet. After administrator manually changes column widths or just visits given grid this option will not have effect. This behavior exactly matches pattern, that we have after clean installation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: