Ignore:
Timestamp:
2012-02-13T14:08:47+13:00 (12 years ago)
Author:
papitha
Message:

jQuery-File-Upload added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-cols-dev/peijones/js/documentmaker/PhotoNotes-1.5.js

    r24823 r25075  
    11
    2 
    3 /*********************************************************/
    42/*** Photo Notes Container *******************************/
    5 /*********************************************************/
     3
    64function PhotoNoteContainer(element, config)
    75{
     
    7977};
    8078
    81 
    82 
    83 /*********************************************************/
    8479/*** Photo Note ******************************************/
    85 /*********************************************************/
     80
    8681function PhotoNote(text,id,rect)
    8782{
     
    410405            {
    411406                this.maxRight = currentNote.container.element.offsetWidth;
    412                 this.maxBottom = currentNote.container.element.offsetHeight - 3;
     407                this.maxBottom = currentNote.container.element.offsetHeight + $("#noZoom").position().top - 3;
    413408                return true;
    414409            }
     
    443438        {
    444439            currentNote.rect.left = parseInt(this.element.style.left);
    445             currentNote.rect.top = parseInt(this.element.style.top);
     440            currentNote.rect.top = parseInt(this.element.style.top) - $("#noZoom").position().top;
    446441            currentNote.rect.width = parseInt(this.element.style.width);
    447442            currentNote.rect.height = parseInt(this.element.style.height);
     
    467462    /* outer most box */
    468463    this.gui.ElementRect.style.left  = this.rect.left + 'px';
    469     this.gui.ElementRect.style.top  = this.rect.top + 'px';
     464    this.gui.ElementRect.style.top  = this.rect.top + $("#noZoom").position().top + 'px';
    470465    this.gui.ElementRect.style.width  = this.rect.width + 'px';
    471466    this.gui.ElementRect.style.height  = this.rect.height + 'px';
     
    484479 
    485480    this.gui.ElementNote.style.left  = this.rect.left + this.XOffset + 'px';
    486     this.gui.ElementNote.style.top  = this.rect.top + this.YOffset + this.rect.height + 'px';
     481    this.gui.ElementNote.style.top  = this.rect.top + this.YOffset + this.rect.height + $("#noZoom").position().top + 'px';
    487482   
    488483}
     
    626621        minWidth: 10, minHeight: 10,     // Minimum pixel size of elements.
    627622        minLeft: 0, maxRight: 9999,      // Bounding box area.
    628         minTop: 0, maxBottom: 9999,
     623        minTop: $("#noZoom").position().top, maxBottom: 9999,
    629624        zIndex: 1,                       // The highest Z-Index yet allocated.
    630625        mouseX: 0, mouseY: 0,            // Current mouse position, recorded live.
     
    696691        // Record element attributes for mouseMove().
    697692        elmX = parseInt(element.style.left);
    698         elmY = parseInt(element.style.top);
     693        elmY = parseInt(element.style.top + $("#noZoom").position().top);
    699694        elmW = element.offsetWidth;
    700695        elmH = element.offsetHeight;
Note: See TracChangeset for help on using the changeset viewer.