Skip to content

Commit

Permalink
Fixed a bug in the placement of notes
Browse files Browse the repository at this point in the history
  • Loading branch information
roland.bouman committed Oct 7, 2010
1 parent 3c43904 commit 90aae8e
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
3 changes: 2 additions & 1 deletion template/css/kettle.css
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,11 @@ li {
.note{
position:absolute;
border-style:solid;
border-width: 2px;
border-width: 1px;
background-color: yellow;
font-family: sans-serif;
font-size: 8pt;
padding: 2px;
}

.hop-true-icon {
Expand Down
24 changes: 16 additions & 8 deletions xslt/kettle-report.xslt
Original file line number Diff line number Diff line change
Expand Up @@ -923,10 +923,14 @@
<xsl:param name="transformation" select="$document/transformation"/>

<xsl:variable name="steps" select="$transformation/step"/>
<xsl:variable name="notepads" select="$transformation/notepads/notepad"/>
<xsl:variable name="error-handlers" select="$transformation/step_error_handling/error"/>

<xsl:variable name="xlocs" select="$steps/GUI/xloc"/>
<xsl:variable name="ylocs" select="$steps/GUI/yloc"/>
<!--
TODO: for notepads, take the width / height into account.
-->
<xsl:variable name="xlocs" select="$steps/GUI/xloc | $notepads/xloc"/>
<xsl:variable name="ylocs" select="$steps/GUI/yloc | $notepads/yloc"/>
<xsl:variable name="hops" select="$transformation/order/hop"/>

<xsl:variable name="max-xloc">
Expand Down Expand Up @@ -959,8 +963,8 @@
<xsl:for-each select="$steps">
<xsl:variable name="type" select="type/text()"/>
<xsl:variable name="name" select="name/text()"/>
<xsl:variable name="xloc" select="GUI/xloc - $min-xloc"/>
<xsl:variable name="yloc" select="GUI/yloc - $min-yloc"/>
<xsl:variable name="xloc" select="GUI/xloc"/>
<xsl:variable name="yloc" select="GUI/yloc"/>
<xsl:variable name="text-pixels" select="string-length(name) * 4"/>
<xsl:variable name="hide" select="GUI/draw/text()='N'"/>
<xsl:variable name="copies" select="copies/text()"/>
Expand Down Expand Up @@ -1118,8 +1122,12 @@
<xsl:param name="job" select="$document/job"/>
<xsl:variable name="entries" select="$job/entries/entry"/>

<xsl:variable name="xlocs" select="$entries/xloc"/>
<xsl:variable name="ylocs" select="$entries/yloc"/>
<xsl:variable name="notepads" select="$job/notepads/notepad"/>
<!--
TODO: for notepads, take the width / height into account.
-->
<xsl:variable name="xlocs" select="$entries/xloc | $notepads/xloc"/>
<xsl:variable name="ylocs" select="$entries/yloc | $notepads/yloc"/>
<xsl:variable name="hops" select="$job/hops/hop"/>

<xsl:variable name="max-xloc">
Expand Down Expand Up @@ -1152,8 +1160,8 @@
<xsl:for-each select="$entries">
<xsl:variable name="type" select="type/text()"/>
<xsl:variable name="name" select="name/text()"/>
<xsl:variable name="xloc" select="xloc - $min-xloc"/>
<xsl:variable name="yloc" select="yloc - $min-yloc"/>
<xsl:variable name="xloc" select="xloc"/>
<xsl:variable name="yloc" select="yloc"/>
<xsl:variable name="text-pixels" select="string-length(name) * 4"/>
<xsl:variable name="hide" select="draw/text()='N'"/>
<a>
Expand Down

0 comments on commit 90aae8e

Please sign in to comment.