Jump to content

Recommended Posts

Posted

I find that for a number of different scenarios, when I set column widths on fields and their display is conditional they don't always respect the column widths that I set.

So for example if I have a field set to 30% column width that has three options that are hidden until an option is selected, each set to 70%, sometimes the 70% width field shows up next to the 30%, but sometimes it shows up beneath as a full width.

For example:

image.png.447cc44cecbc19e1cc83ac66d42f277a.png

image.png.1ed365562f841658472716293650b0a4.png

These are both 70% column width in this context.

I don't run into it a lot, but enough and in an inconsistent manner.

Has anyone else run into this and found either a reason for the columnwidth to not be respected or a way to 'force' it?

This generally doesn't happen when showIf is not involved.

Posted

In this case what I do is split the remaining 70% into the three conditionally visible fields (e.g. 23/24/23). The visible one will then stretch out to occupy the remaining width.

  • Like 1
Posted

I've experienced it, and if I'm remembering correctly, it seemed to be related to either (only) a CSS issue, or a JavaScript call that wasn't applying the appropriate class(es) for CSS display. I looked into it for a bit, but since it was only unexpected and not preventing proper functionality I moved on since I never fully solved it.

@monollonom Can you explain what you mean in more detail? I didn't quite understand (and am curious); gorny shows two fields (where one field has three options), but you mention three conditionally visible fields...?

Posted

@BrendonKoz here is a screenshot and screencast showing what gorny’s setup is (at least how I understood it):

264636140_Screenshot2023-10-12at19_26_50.thumb.png.bf0b96cf9d44208f144a73c90eb4449b.png

options_2.gif.c0da5c9fd729d99997a74c1afa25e31c.gif

And here is what I’m suggesting / what I’m doing in such situation:

1399663904_Screenshot2023-10-12at19_21_40.thumb.png.91d011ff65c048ec389e5573b50ba2dd.png

Here the sum of the fields’ width is 100%

options.gif.8298f2d9d35f8bf52920a7f89dcceaf0.gif

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...