?
avatar mbabker
mbabker
4 Feb 2017

This screen cap demonstrates the issue. I'm not focused here on the jump as the page loads, but rather how the width changes when I choose a value.

https://cl.ly/0r2k2g2u0J15

avatar mbabker mbabker - open - 4 Feb 2017
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Feb 2017
avatar C-Lodder
C-Lodder - comment - 10 Feb 2017

I didn't set a max width on purpose. Take the following example:

screeny

Select Registration Date. If I set a max-width of 150px, it's not enough space. On multilingual sites, I have no idea what width may be required.

If I set the max width to 300px, then some o the dropdowns will simply be too wide, like Select State. The difference between J3 and J4, is that J4 uses a large default font size, thus taking up more space, but much easier for people to read.

avatar dgt41
dgt41 - comment - 10 Feb 2017

@mbabker select element is controlled by the browser, why shall we override the default behaviour with some hardcoded width (which most probably will bring more problems than the one supposed to solve)?

avatar mbabker
mbabker - comment - 10 Feb 2017

It's not the lack of a max width that's the issue to me. Watch the video please, the element changes size depending on what you have selected; the native <select> doesn't do that.

avatar C-Lodder
C-Lodder - comment - 10 Feb 2017

This only applies to the chosen select boxes which you're using in com_patchtester, which we've nearly completely removed in J4.

We're still waiting for choises.js to release a beta with the feature that Dimitris requested.

I'd suggest you use the custom-select class for your select boxes

avatar mbabker
mbabker - comment - 10 Feb 2017

I copied the markup direct from a rendered com_content page (patch tester doesn't use legacy MVC so it doesn't use native search tools stuff). https://github.com/joomla-extensions/patchtester/blob/master/administrator/templates/atum/html/com_patchtester/pulls/default.php

Looking again, it looks like I'm still loading some extra JavaScript though and that might just be the only problem to fix for my case here.

avatar C-Lodder
C-Lodder - comment - 10 Feb 2017

Replace:

\JHtml::_('formbehavior.chosen', 'select');

with:

\JHtml::_('formbehavior.chosen', '.advancedSelect');
avatar mbabker
mbabker - comment - 10 Feb 2017

Chosen's gone completely. I just hadn't removed the JavaScript loader for it is all. Works fine without it.

avatar mbabker mbabker - change - 10 Feb 2017
Status New Closed
Closed_Date 0000-00-00 00:00:00 2017-02-10 14:24:55
Closed_By mbabker
avatar mbabker mbabker - close - 10 Feb 2017

Add a Comment

Login with GitHub to post a comment