Changeset 3097 for trunk


Ignore:
Timestamp:
11/08/10 16:03:56 (9 years ago)
Author:
jukka
Message:

Fixed exercise edit to display correctly over 4 existing choices.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/skins/lemill/widget_exercise.pt

    r3086 r3097  
    265265 
    266266<metal:edit_question define-macro="edit_exercise"> 
    267  <div class="chapter_edit" style="height:360px">  
     267 <div class="chapter_edit" tal:define="choices chapter/choices | python:[]; n_choices python: len(choices) or 3; height python:200+50*n_choices" tal:attributes="style python:'min-height:%spx' % height" style="min-height:360px">  
    268268  <metal:question_selection use-macro="here/widget_exercise/macros/question_selection" /> 
    269269  <metal:multiple_questions use-macro="here/widget_exercise/macros/multiple_questions_edit" /> 
     
    273273  <div class="inner_edit" id="preview"> 
    274274    <label align="center"><tal:block i18n:translate="preview">Preview</tal:block>:</label> 
    275     <div class="innermost" style="width:700px;height:290px;">replaced text</div> 
     275    <div class="innermost" style="width:700px;min-height:290px;">replaced text</div> 
    276276    <a href="javascript:previewQuestion();void(0)" class="backlink" style="align:left" >&lt; <tal:block i18n:translate="link_edit_exercise">Edit exercise</tal:block></a> 
    277277  </div> 
Note: See TracChangeset for help on using the changeset viewer.