Changeset 2590


Ignore:
Timestamp:
Sep 25, 2008, 9:46:37 PM (16 years ago)
Author:
vdigital
Message:

Bug 532... doubleSelect wasn't usable with large category names. (This solution is really bad with IE7). See Bug for more and related topic.

Location:
trunk/admin/template/goto
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/template/goto/default-layout.css

    r2587 r2590  
    4141
    4242/* categoryOrdering */
    43 SELECT.categoryList {
    44   width: 100%;
    45 }
    4643
    4744FORM#categoryOrdering {
     
    8885TABLE.doubleSelect TD {
    8986  padding: 0 5px;
    90   width: 50%;
     87  /* width: 50%; relative width does't work with horizontal scroll */
     88  display: table-cell; width:300px; min-width:300px; max-width:300px;
     89}
     90
     91.hscroll {
     92 overflow-x:scroll; width:100%; min-width:100%; max-width:100%;
     93 overflow: -moz-scrollbars-horizontal; border-style: solid; border-width: 1px;
    9194}
    9295
    9396TABLE.doubleSelect SELECT.categoryList {
    94   width: 100%; max-width: 100%; overflow-x: auto; /* Bug 532 */
     97  height:250px; border:0;
    9598}
    9699
     
    146149  border: 1px solid black;
    147150}
    148 
    149 /* Tabsheet */  /*
    150 .tabsheet {
    151   list-style: none;
    152   white-space: nowrap;
    153   text-decoration: none;
    154   border-bottom: 1px solid #fff;
    155   margin-left: 5px; margin-right: 5px;
    156   padding: 3px 5px;
    157 }
    158 
    159 .tabsheet LI {
    160   display: inline;
    161  margin: 0px 6px;
    162   font-size: 120%;
    163   font-weight: normal;
    164   border: 1px solid #fff;
    165   border-bottom: none;
    166   padding: 3px 2em;
    167 }
    168 
    169 .tabsheet LI.selected_tab {
    170   font-weight: bold;
    171   position: relative;
    172   top: 1px;
    173   padding-top: 4px;
    174 } */
    175151
    176152.over{
     
    293269}
    294270
    295 SELECT.categoryList {
    296   height: 20em;
    297   width: auto;
    298 }
    299 
    300271DIV.comment BLOCKQUOTE {
    301272  padding: 0.5em;
     
    522493  padding: 10px;
    523494}
     495
     496/* hack  tout sauf IE7 */
     497html>/**/body TABLE.doubleSelect SELECT.categoryList {
     498  min-width: 100%;
     499}
     500/* Only IE7 */
     501*+html  .right {
     502  left: -320px; position: relative; z-index: 99;
     503}
  • trunk/admin/template/goto/double_select.tpl

    r2531 r2590  
    44    <td>
    55      <h3>{$L_CAT_OPTIONS_TRUE}</h3>
    6       <select class="categoryList" name="cat_true[]" multiple="multiple" size="30">
    7         {html_options options=$category_option_true selected=$category_option_true_selected}
    8       </select>
     6      <div class="hscroll">
     7        <select class="categoryList" name="cat_true[]" multiple="multiple" size="30">
     8          {html_options options=$category_option_true selected=$category_option_true_selected}
     9        </select>
     10      </div>
    911      <p><input class="submit" type="submit" value="&raquo;" name="falsify" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
    1012    </td>
    1113
    1214    <td>
    13       <h3>{$L_CAT_OPTIONS_FALSE}</h3>
    14       <select class="categoryList" name="cat_false[]" multiple="multiple" size="30">
    15         {html_options options=$category_option_false selected=$category_option_false_selected}
    16       </select>
    17       <p><input class="submit" type="submit" value="&laquo;" name="trueify" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
    18     </td>
     15      <div class="right">
     16        <h3>{$L_CAT_OPTIONS_FALSE}</h3>
     17        <div class="hscroll">
     18          <select class="categoryList" name="cat_false[]" multiple="multiple" size="30">
     19            {html_options options=$category_option_false selected=$category_option_false_selected}
     20          </select>
     21        </div>
     22        <p><input class="submit" type="submit" value="&laquo;" name="trueify" style="font-size:15px;" {$TAG_INPUT_ENABLED}/></p>
     23      </div>
     24      </td>
    1925  </tr>
    2026</table>
Note: See TracChangeset for help on using the changeset viewer.