Changeset 41084bbae99e8a58d8b91f24d116e38ac3f7dd2a
- Timestamp:
- 06/29/09 18:52:18
(4 years ago)
- Author:
- Umar Farooq <umar@omniti.com>
- git-committer:
- Umar Farooq <umar@omniti.com> 1246301538 +0000
- git-parent:
[e4063fff92cb13883113b8c83778545ed130b1f6]
- git-author:
- Umar Farooq <umar@omniti.com> 1246301538 +0000
- Message:
styling so the graph titles look correct, fixes #146
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| re4063ff |
r41084bb |
|
| 731 | 731 | font-size:10px; |
|---|
| 732 | 732 | } |
|---|
| | 733 | #stream-header { |
|---|
| | 734 | width: 100%; |
|---|
| | 735 | overflow: hidden; |
|---|
| | 736 | } |
|---|
| | 737 | #stream-modal-header { |
|---|
| | 738 | width: 100%; |
|---|
| | 739 | overflow: auto; |
|---|
| | 740 | } |
|---|
| | 741 | .graphTitle { |
|---|
| | 742 | text-align: center; |
|---|
| | 743 | } |
|---|
| | 744 | #maingraph .graphTitle { |
|---|
| | 745 | display: none; |
|---|
| | 746 | } |
|---|
| 733 | 747 | div.plot-area { |
|---|
| 734 | 748 | height:180px; |
|---|
| … | … | |
| 764 | 778 | margin-top: 50px; |
|---|
| 765 | 779 | } |
|---|
| | 780 | #drawing_board .graphTitle { |
|---|
| | 781 | font-size:28px; |
|---|
| | 782 | font-weight:normal; |
|---|
| | 783 | text-align: center; |
|---|
| | 784 | padding-bottom: 10px; |
|---|
| | 785 | padding-top: 10px; |
|---|
| | 786 | } |
|---|
| 766 | 787 | #drawing_board div.plot-area { |
|---|
| 767 | 788 | height:400px; |
|---|
| 768 | 789 | width:780px; |
|---|
| 769 | | margin-top: 50px; |
|---|
| | 790 | margin-top: 20px; |
|---|
| 770 | 791 | } |
|---|
| 771 | 792 | #drawing_board ul#worksheet-graphs div.plot-area { |
|---|
| … | … | |
| 790 | 811 | } |
|---|
| 791 | 812 | #StreamingModalContainer .graphTitle{ |
|---|
| | 813 | font-size:28px; |
|---|
| | 814 | font-weight:normal; |
|---|
| 792 | 815 | text-align: center; |
|---|
| | 816 | padding-bottom: 10px; |
|---|
| | 817 | padding-top: 10px; |
|---|
| 793 | 818 | } |
|---|
| 794 | 819 | #maingraph div.plot-area div.centered { |
|---|
| … | … | |
| 1015 | 1040 | .moveGraph { |
|---|
| 1016 | 1041 | margin: 0; |
|---|
| | 1042 | } |
|---|
| | 1043 | ul#worksheet-graphs .graphTitle { |
|---|
| | 1044 | font-size:12px; |
|---|
| | 1045 | font-weight:bold; |
|---|
| | 1046 | text-align: center; |
|---|
| | 1047 | padding-bottom: 10px; |
|---|
| | 1048 | padding-top: 10px; |
|---|
| 1017 | 1049 | } |
|---|
| 1018 | 1050 | ul#worksheet-graphs li.zoomGraph { |
|---|
| re4063ff |
r41084bb |
|
| 106 | 106 | |
|---|
| 107 | 107 | function set_current_graph_id(id) { |
|---|
| 108 | | streaming = false; //precautionary |
|---|
| | 108 | stop_streaming_graph(); |
|---|
| 109 | 109 | $(".rememberGraph").fadeOut('fast'); |
|---|
| 110 | 110 | if(id!='') { |
|---|
| … | … | |
| 118 | 118 | unlock_forms(); |
|---|
| 119 | 119 | $(".editGraph").html('Editing!').fadeIn('slow'); |
|---|
| 120 | | stop_streaming_graph(); |
|---|
| 121 | 120 | } |
|---|
| 122 | 121 | current_graph_id = id; |
|---|
| re4063ff |
r41084bb |
|
| 206 | 206 | if(!this.graphinfo.cnt) this.graphinfo.cnt = this.graphinfo.width / 2; |
|---|
| 207 | 207 | if(!this.attr("id")) this.attr("id", this.graphinfo.graphid); |
|---|
| 208 | | this.append($('<h3/>').addClass("graphTitle") |
|---|
| | 208 | this.append($('<div/>').addClass("graphTitle") |
|---|
| 209 | 209 | .html(this.graphinfo.title || '')) |
|---|
| 210 | 210 | .append($('<div></div>').addClass("plot-area") |
|---|
| … | … | |
| 223 | 223 | this.graphinfo.graphid = ''; |
|---|
| 224 | 224 | if(this.flot_plot) { |
|---|
| 225 | | this.find("h3.graphTitle").html(''); |
|---|
| | 225 | this.find(".graphTitle").html(''); |
|---|
| 226 | 226 | this.find("div.plot-legend").html(''); |
|---|
| 227 | 227 | this.flot_plot.setData({}); |
|---|
| … | … | |
| 378 | 378 | function (r, redraw) { |
|---|
| 379 | 379 | var title = this.ReconGraphMacro(r.title, r.data); |
|---|
| 380 | | this.find("h3.graphTitle").html(title); |
|---|
| | 380 | this.find(".graphTitle").html(title); |
|---|
| 381 | 381 | var placeholder = this.find("> div.plot-area"); |
|---|
| 382 | 382 | placeholder.bind("plotselected", (function (o) { |
|---|