Changeset 1916

Show
Ignore:
Timestamp:
02/04/07 16:48:09 (2 years ago)
Author:
eblot
Message:

RevtreePlugin:

  • Fix up an issue with Firefox 2.0 on Windows which prevented the SVG image to be aligned on the left side.
  • Add CSS to the SVG image
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • revtreeplugin/0.11/revtree/htdocs/css/revtree.css

    r1912 r1916  
    1717 white-space: nowrap; 
    1818 float: left; 
    19  border-right: solid 1px #333; 
     19 border-right: inset 1px #333; 
    2020} 
    2121div.revprops span.legend { 
    2222   /*Seemms that legend tag cannot be selected, use span instead*/ 
    23         font-weight:bold; 
     23        font-weight: bold; 
    2424} 
    2525#treeoptions { 
     
    5151 float: left; 
    5252} 
    53 div.svg { 
     53.svg { 
    5454 float: none; 
     55 padding-top: 1em; 
    5556 margin-left: 4ex; 
    5657} 
  • revtreeplugin/0.11/revtree/templates/revtree.html

    r1912 r1916  
    134134      </div> 
    135135      <div py:otherwise="" class="svg"> 
     136        ${rt.svgstyle} 
    136137        ${rt.svg} 
    137138      </div> 
  • revtreeplugin/0.11/revtree/web_ui.py

    r1911 r1916  
    265265            svgrevtree.build() 
    266266            svgrevtree.render(self.scale*0.6) 
    267             # prevent from escaping the SVG stream 
    268             data.update({'svg': Markup(svgrevtree)}) 
     267            style = req.href.chrome('revtree/css/revtree.css') 
     268            svgstyle = '<?xml-stylesheet href="%s" type="text/css"?>' % style 
     269            data.update({ 
     270                'svg': Markup(svgrevtree), 
     271                'svgstyle': Markup(svgstyle) 
     272            }) 
    269273            # create and order the drop-down list content, starting with the 
    270274            # global values