/adei/ui

To get this branch, use:
bzr branch http://darksoft.org/webbzr/adei/ui

« back to all changes in this revision

Viewing changes to js/graph.js

  • Committer: Suren A. Chilingaryan
  • Date: 2008-04-20 05:22:25 UTC
  • Revision ID: csa@dside.dyndns.org-20080420052225-enu1yngq1pny531z
Layout redesign: search tab, controls, menu

Show diffs side-by-side

added added

removed removed

Lines of Context:
540
540
//GRAPH.prototype.NotificationExport
541
541
 
542
542
 
543
 
GRAPH.prototype.AdjustGeometry = function(width, height) {
544
 
    domAdjustGeometry(this.frame, width, height - (this.selector?this.selector.offsetHeight:0) - 5, true);
 
543
GRAPH.prototype.AdjustGeometry = function(width, height, hend, vend) {
 
544
/*
 
545
    This was rougher approach
 
546
    domAdjustGeometry(this.frame, width, height - (this.selector?this.selector.offsetHeight:0), true);
 
547
*/
 
548
 
 
549
    var mboffset = domGetNodeOffset(this.frame);
 
550
    var w = hend - mboffset[0];
 
551
    var h = vend - mboffset[1] - 1;
 
552
    domAdjustGeometry(this.frame, w, h, true);
545
553
}
546
554
 
547
555
 
552
560
    return (this.xsize * prec) / this.real_width;
553
561
}
554
562
 
555
 
 
556
563
/*
557
564
GRAPH.prototype.MouseSelection = function(xy) {
558
565
    alert(this.start_xy[0] - xy[0]);