diff --git a/module/bug/css/create.css b/module/bug/css/create.css index b8458d29b3..5ea4470f14 100644 --- a/module/bug/css/create.css +++ b/module/bug/css/create.css @@ -37,3 +37,7 @@ .colorpicker.input-group-btn > .btn {border-right: none} #branch {border-left-width: 0px;} + +#bugTypeInputGroup {max-height: 30px; overflow: hidden} +#bugTypeInputGroup .form-control, #bugTypeInputGroup .input-group-addon {float: left; width: auto;} +#bugTypeInputGroup .input-group-addon {padding: 5px 10px; line-height: 18px;} diff --git a/module/bug/js/create.js b/module/bug/js/create.js index 10ab55b57e..e7ec1fe87d 100644 --- a/module/bug/js/create.js +++ b/module/bug/js/create.js @@ -103,11 +103,29 @@ $(function() $('[data-toggle=tooltip]').tooltip(); - // ajust style for file box + // adjust size of bug type input group + var adjustBugTypeGroup = function() + { + var $group = $('#bugTypeInputGroup'); + var width = $group.width(), addonWidth = 0; + var $controls = $group.children('.form-control'); + $group.children('.input-group-addon').each(function() + { + addonWidth += $(this).outerWidth(); + }); + $controls.css('width', Math.floor((width - addonWidth)/$controls.length)); + }; + adjustBugTypeGroup(); + + // adjust style for file box var ajustFilebox = function() { applyCssStyle('.fileBox > tbody > tr > td:first-child {transition: none; width: ' + ($('#contactListGroup').width() - 2) + 'px}', 'filebox') }; ajustFilebox(); - $(window).resize(ajustFilebox); + $(window).resize(function() + { + ajustFilebox(); + adjustBugTypeGroup(); + }); }); diff --git a/module/bug/view/create.html.php b/module/bug/view/create.html.php index 6253d8de3b..f5f60cdfdd 100644 --- a/module/bug/view/create.html.php +++ b/module/bug/view/create.html.php @@ -1,4 +1,4 @@ -refresh); bug->type;?> -
+
bug->typeList['designchange']);