Changeset 10023:4b19cab81e3c in orange


Ignore:
Timestamp:
02/07/12 23:59:44 (2 years ago)
Author:
Jure Zbontar <jure.zbontar@…>
Branch:
default
Message:

Fixed css layout bug.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • docs/sphinx-ext/themes/orange_theme/static/copybutton.js

    r10014 r10023  
    88 
    99    // get the styles from the current theme 
    10 //    pre.parent().parent().css('position', 'relative'); 
    1110    var hide_text = 'Hide the prompts and output'; 
    1211    var show_text = 'Show the prompts and output'; 
     
    1514    var border_color = pre.css('border-top-color'); 
    1615    var button_styles = { 
    17         'cursor':'pointer', 'position': 'absolute', 'top': '0', 'right': '0', 
     16        'cursor':'pointer', 'float': 'right', 'margin-top': '-6px', 'margin-right': '-5px', 
    1817        'border-color': border_color, 'border-style': border_style, 
    1918        'border-width': border_width, 'color': border_color, 'text-size': '75%', 
     
    2827            button.css(button_styles) 
    2928            button.attr('title', hide_text); 
    30             jthis.prepend(button); 
     29            jthis.find('pre').prepend(button); 
    3130        } 
    3231        // tracebacks (.gt) contain bare text elements that need to be 
Note: See TracChangeset for help on using the changeset viewer.