Skip to content

Conversation

@smg6511
Copy link
Collaborator

@smg6511 smg6511 commented Oct 29, 2025

What does it do?

Updated css and added new input properties to the two TV types to give users better control over their display, particularly for multi-column rendering. The new properties added are:

  • Column Direction
  • Column Width
  • Wrap Column Text
Chooser Opts

Why is it needed?

When these TV types are set to more than one column, their options can overlap visually when their text is longer than just a couple/few words. Extjs 3 has a known issue with how it calculates the column widths and, because it inlines those widths on render, it can be difficult to control the problem outside of the core. Fixing that in Ext via overrides is more trouble than it's worth, so I elected to unset the hard-coded widths and provide some general controls to improve the layout of these TVs.

Before this fix:
Before 1

After this fix (just a couple sample configs):
After 1
After 2
After 3

How to test

  1. Create a couple multi-column TVs (a radio and a checkbox) and play with the new properties, giving each TV varying lengths of text in their options.
  2. Verify that there's no overlap between columns.

Related issue(s)/PR(s)

I believe I saw something in the Community thread on Slack that alerted me to the problem; there doesn't seem to be an Issue posted on GitHub though.

Update: Resolves #16801 - The issue was just posted by a user today (12/19).

Copy link
Member

@theboxer theboxer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works as described, thank you!

smg6511 and others added 3 commits January 26, 2026 10:40
Expands on settings, logic, and styles to prevent display issues with multi-column checkbox and radio TVs
Fix formatting (move commas)
@opengeek opengeek force-pushed the 3.x-fix-toggle-group-display-in-cols branch from 105d204 to be0fecc Compare January 26, 2026 17:41
@opengeek opengeek merged commit c394e1e into modxcms:3.x Jan 26, 2026
7 checks passed
@opengeek opengeek added this to the v3.2.0 milestone Jan 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

requires build Grunt build is required for integration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TV checkboxes width is set to fixed narrow width

3 participants