[Rt-commit] rt branch, 4.4/selection-box-min-width, created. rt-4.2.11-187-ge1bfdd8

Dustin Graves dustin at bestpractical.com
Wed Sep 23 11:40:22 EDT 2015


The branch, 4.4/selection-box-min-width has been created
        at  e1bfdd85f476565c1f03f1c8d24aa4cf5d4ef02b (commit)

- Log -----------------------------------------------------------------
commit e1bfdd85f476565c1f03f1c8d24aa4cf5d4ef02b
Author: Dustin Graves <dustin at bestpractical.com>
Date:   Wed Sep 23 15:39:40 2015 +0000

    add min-width style to selection boxes to prevent 1px wide empty boxes
    
    Fixes: I#31229

diff --git a/share/html/Widgets/SelectionBox b/share/html/Widgets/SelectionBox
index 01ca668..8651064 100644
--- a/share/html/Widgets/SelectionBox
+++ b/share/html/Widgets/SelectionBox
@@ -169,7 +169,7 @@ $self => undef
 <& SelectionBox:current, self => $self &>
 <&|/l&>Available</&>:
 <br />
-<select name="<%$name%>-Available" id="<%$name%>-Available" size="<%$size%>" multiple="multiple">
+<select name="<%$name%>-Available" id="<%$name%>-Available" size="<%$size%>" multiple="multiple" class="selection-box">
 % for (@{$self->{Available}}) {
 <option value="<% $_->[0] %>"><% $_->[1] %></option>
 % }
@@ -179,7 +179,7 @@ $self => undef
 <input aria-label="Add" name="add" type="submit" class="button" value=" → " />
 % }
 
-<select name="<%$name%>-Selected" id="<%$name%>-Selected" size="<%$size%>" multiple="multiple">
+<select name="<%$name%>-Selected" id="<%$name%>-Selected" size="<%$size%>" multiple="multiple" class="selection-box">
 % for (@{$self->{Current}}) {
 <option value="<% $_ %>"
 % if (exists $selected{$_}) {
diff --git a/share/static/css/base/misc.css b/share/static/css/base/misc.css
index a76bf00..4a92823 100644
--- a/share/static/css/base/misc.css
+++ b/share/static/css/base/misc.css
@@ -76,6 +76,11 @@ textarea.messagebox, #cke_Content, #cke_UpdateContent {
   box-sizing: border-box;
 }
 
+.selection-box {
+    min-width: 300px;
+}
+
 .datepicker {
     width: 17em;
 }
+

-----------------------------------------------------------------------


More information about the rt-commit mailing list