- Timestamp:
- 2012-02-13T14:08:47+13:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/model-cols-dev/peijones/js/documentmaker/PhotoNotes-1.5.js
r24823 r25075 1 1 2 3 /*********************************************************/4 2 /*** Photo Notes Container *******************************/ 5 /*********************************************************/ 3 6 4 function PhotoNoteContainer(element, config) 7 5 { … … 79 77 }; 80 78 81 82 83 /*********************************************************/84 79 /*** Photo Note ******************************************/ 85 /*********************************************************/ 80 86 81 function PhotoNote(text,id,rect) 87 82 { … … 410 405 { 411 406 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; 413 408 return true; 414 409 } … … 443 438 { 444 439 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; 446 441 currentNote.rect.width = parseInt(this.element.style.width); 447 442 currentNote.rect.height = parseInt(this.element.style.height); … … 467 462 /* outer most box */ 468 463 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'; 470 465 this.gui.ElementRect.style.width = this.rect.width + 'px'; 471 466 this.gui.ElementRect.style.height = this.rect.height + 'px'; … … 484 479 485 480 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'; 487 482 488 483 } … … 626 621 minWidth: 10, minHeight: 10, // Minimum pixel size of elements. 627 622 minLeft: 0, maxRight: 9999, // Bounding box area. 628 minTop: 0, maxBottom: 9999,623 minTop: $("#noZoom").position().top, maxBottom: 9999, 629 624 zIndex: 1, // The highest Z-Index yet allocated. 630 625 mouseX: 0, mouseY: 0, // Current mouse position, recorded live. … … 696 691 // Record element attributes for mouseMove(). 697 692 elmX = parseInt(element.style.left); 698 elmY = parseInt(element.style.top );693 elmY = parseInt(element.style.top + $("#noZoom").position().top); 699 694 elmW = element.offsetWidth; 700 695 elmH = element.offsetHeight;
Note:
See TracChangeset
for help on using the changeset viewer.