column still takes its width space when visibility and display hidden
Support › MB Columns › column still takes its width space when visibility and display hiddenResolved
- This topic has 5 replies, 4 voices, and was last updated 2 years, 7 months ago by
Scott Brim.
-
AuthorPosts
-
November 29, 2022 at 5:03 PM #39387
Totis-Tautvydas Rakickas
ParticipantI am making dynamic row layout and want the items not visible conditionally to do not take column width space as blank space.
Bellow is example how my layout is shown now:<div class="rwmb-column rwmb-column-3 "> <div class="rwmb-field rwmb-taxonomy_advanced-wrapper" data-visible="hidden" style="display: none;"> <div class="rwmb-label"> <label for="twof_group_for_mums_featured_twof_select_product_category_for_button_link">Select product category for button link</label>how can i make
style="display: none;"to be passed to<div class="rwmb-column rwmb-column-3 ">and hide it?November 30, 2022 at 10:40 PM #39417Peter
ModeratorHello there,
It is the standard behavior of the WordPress admin column. For example, if there is no post that has a category the column is still displayed. If you want to hide an admin column, please uncheck it in the Screen Options area.
December 1, 2022 at 6:24 PM #39433Totis-Tautvydas Rakickas
ParticipantHello,
You have misunderstood me i suppose.

In the image you can see that 2nd option is selected , and the other 2 options that take 3col width are hidden with conditions, i would want to achieve that they would not take that space if they are not visible and that selected option would always appear next to select option field. example bellow
December 1, 2022 at 9:38 PM #39435Peter
ModeratorHello,
Sorry for the misunderstanding, the style "display: none" is added to the wrapper element inside the rwmb-column element so it is not possible to hide the column if the wrapper is hidden. I will inform the development team to consider supporting this case in future updates.
Thanks.
January 21, 2023 at 7:20 PM #40276Joe
ParticipantHi Peter ,
any news about this?Problem I am having is this : I am using Open Maps and I am displaying all fields in the backend, a lot of times half of them are empty, those I do not want to show, when I hide them with the conditional the form looks somehow unfinished and is is full of empty space, looks terrible
March 6, 2023 at 8:44 PM #40852Scott Brim
ParticipantIs this an issue? I can't find it in Github, although I found two closed issues from 2015-2016. I am having this exact problem. The
display:none;should be on the outerrwmb-column. It does little good on the innerrwmb-fieldif the outer column is mkes space for nothing. Since I'm using radio buttons, there is no UX problem. If there is an issue in Github please let me know. Big gaps look odd and users have been disliking it for years. Thanks much. -
AuthorPosts
- You must be logged in to reply to this topic.