Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

Dropdown Zero Width

  • chepp
  • chepp
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
8 years 7 months ago #279890 by chepp
Dropdown Zero Width was created by chepp
I upgraded to CB 2.0.14 on Joomla 3.5.0. Dropdown lists are now all zero width. I have tried changing the size in the field settings (works for text boxes, not drop down). I tried using different browsers and different site templates, but the size is always zero on the element. When I inspect the element in Chrome, the element is set to 0px. When I manually change the width it works fine, but of course it goes away any time the page is refreshed. Where is the zero element width coming from and how to I get rid of it?

<div class="chzn-container chzn-container-single chzn-container-single-nosearch" style="width: 0px;" title="" id="cb_studentadult_chzn">

Thanks

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279892 by krileon
Replied by krileon on topic Dropdown Zero Width
None of those classes are CBs. It's likely something you've installed causing this (those classes look like jQuery Chosen classes). Size setting for select fields does not adjust width, but adjusts the size of the selection (its height). Switch to default Joomla template and see if issue persists.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • chepp
  • chepp
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
8 years 7 months ago #279894 by chepp
Replied by chepp on topic Dropdown Zero Width
I tried every template installed:

atomic - Default
beez_20 - Default
Beez_20 - Default
beez3 - Default
beez5 - Default
Outsourcing-FJT - Default
protostar - Default

These are the same templates that were installed prior to the upgrade.

Since the width is set on the element rather than through a class, it seems to me that the component generating the code is setting it to zero. Is that wrong?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 7 months ago #279940 by krileon
Replied by krileon on topic Dropdown Zero Width
Most likely you've a 3rd party Joomla system plugin in Extensions > Plugins doing it if it isn't the template. Again, something is converting your Select inputs into Chosen inputs. You can see what Chosen is at the following URL. Joomla nor CB does this so you've something installed doing it.

harvesthq.github.io/chosen/


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • chepp
  • chepp
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
8 years 6 months ago #280135 by chepp
Replied by chepp on topic Dropdown Zero Width
Spend two days trying to figure out what is causing this issue, but to no avail. It worked on CB 1.9.1, upgraded CB and a couple CB plugins (CB AntiSpam and CB Conditional)and it stopped working. Nothing else was changed. I was able to work around it by using !Important in CSS to override it.

Thanks for your help.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48460
  • Thanks: 8280
  • Karma: 1443
8 years 6 months ago #280166 by krileon
Replied by krileon on topic Dropdown Zero Width
Best way to find out what's doing it is to disable non-core extensions 1 by 1. Most likely it's a 3rd party Joomla system plugin. Again, CB doesn't even have Chosen. We use select2 and not on frontend. So something installed is converting your selects to Chosen jQuery selects and doing so incorrectly.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum