?
avatar brianteeman
brianteeman
1 Sep 2017

Steps to reproduce the issue

Depending on the length of the items in the select box then the select box can break the layout of the page as shown below - shouldnt there be a max-width or something to ensure a consistent width. The dropdown already expands greater than the box

screenshotr09-51-20

screenshotr09-52-05

screenshotr09-52-12

avatar brianteeman brianteeman - open - 1 Sep 2017
avatar joomla-cms-bot joomla-cms-bot - change - 1 Sep 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 1 Sep 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Sep 2017
Category Layout
avatar C-Lodder
C-Lodder - comment - 1 Sep 2017

It's overlapping because it does have a max-width.

If I remove the max-width, the selectbox will become as long as the longest option. Id rather just the dropdown expanded than the whole thing.

So this was intentional

avatar brianteeman
brianteeman - comment - 1 Sep 2017

If i change the max-width from 100% to 240px then it works as I expect

screenshotr10-24-24

screenshotr10-25-08

avatar franz-wohlkoenig franz-wohlkoenig - change - 1 Sep 2017
Status New Discussion
avatar brianteeman
brianteeman - comment - 6 Dec 2017

@C-Lodder your description of the intended behaviour seems correct

I'd rather just the dropdown expanded than the whole thing.

The problem is that the max-width of 100% doesnt do that without also breaking the layout as I described.

Setting

custom-select {
    max-width: 240px;
}

resolves that.

Or am I talking rubbish?

avatar C-Lodder
C-Lodder - comment - 30 Dec 2017

PR: #19229

avatar franz-wohlkoenig franz-wohlkoenig - change - 30 Dec 2017
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2017-12-30 11:16:06
Closed_By franz-wohlkoenig
avatar joomla-cms-bot joomla-cms-bot - change - 30 Dec 2017
Closed_By franz-wohlkoenig joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 30 Dec 2017
avatar joomla-cms-bot
joomla-cms-bot - comment - 30 Dec 2017
avatar franz-wohlkoenig
franz-wohlkoenig - comment - 30 Dec 2017

closed as having Pull Request #19229

Add a Comment

Login with GitHub to post a comment