Changeset 9126
- Timestamp:
- 06/14/07 05:34:45 (19 months ago)
- Location:
- dijit/trunk
- Files:
-
- 6 added
- 3 modified
- 2 moved
-
themes/dijit.css (modified) (2 diffs)
-
themes/tundra/images/tooltipConnectorDown.gif (added)
-
themes/tundra/images/tooltipConnectorDown.png (added)
-
themes/tundra/images/tooltipConnectorLeft.gif (added)
-
themes/tundra/images/tooltipConnectorLeft.png (added)
-
themes/tundra/images/tooltipConnectorRight.gif (added)
-
themes/tundra/images/tooltipConnectorRight.png (added)
-
themes/tundra/images/tooltipConnectorUp.gif (moved) (moved from dijit/trunk/themes/tundra/tooltipConnector.gif)
-
themes/tundra/images/tooltipConnectorUp.png (moved) (moved from dijit/trunk/themes/tundra/tooltipConnector.png)
-
themes/tundra/tundra.css (modified) (5 diffs)
-
Tooltip.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/themes/dijit.css
r9100 r9126 598 598 599 599 600 601 602 603 600 /**** 604 601 dijit.Tooltip … … 609 606 z-index: 10; 610 607 display: block; 611 margin-top: 10px;612 608 /* make visible but off screen */ 613 609 left: -10000px; -
dijit/trunk/themes/tundra/tundra.css
r9106 r9126 16 16 /* TODO: won't work; path is wrong; use gif instead? */ 17 17 filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="dijitTundraGradientBg.png", sizingMethod="scale"); 18 }19 20 .dj_ie6 .tundra .dijitTooltipConnector {21 background-image: url(tooltipConnector.gif);22 18 } 23 19 … … 496 492 497 493 .tundra .dijitTooltip { 494 /* the outermost dom node, holding the connector and container */ 498 495 opacity: 0.9; 499 496 } … … 501 498 .tundra .dijitTooltipContainer { 502 499 /* 500 The part with the text. 501 503 502 NOTE: 504 503 FF doesn't clip images used as CSS bgs if you specify a border … … 507 506 background: #ffffff url("popupMenuBg.gif") repeat-x bottom left; 508 507 */ 509 background-color: white;508 background-color: #fafafa; 510 509 border:1px solid #9b9b9b; 511 510 padding:0.45em; … … 515 514 } 516 515 517 .tundra .dijitTooltipConnector { 516 .tundra .dijitTooltipConnect { 517 /* the arrow piece */ 518 518 border:0px; 519 z-index: 2; 520 } 521 522 .tundra .dijitTooltipBelow { 523 margin-top: 13px; 524 } 525 .tundra .dijitTooltipBelow .dijitTooltipConnector { 526 /* the arrow piece for tooltips below an element */ 519 527 top: -13px; 520 528 left: 3px; 521 z-index: 2; 522 background:url("tooltipConnector.png") no-repeat top left; 529 background:url("images/tooltipConnectorUp.png") no-repeat top left; 523 530 width:16px; 524 531 height:14px; 532 } 533 .dj_ie6 .tundra .dijitTooltipBelow .dijitTooltipConnector { 534 background-image: url("images/tooltipConnectorUp.gif"); 535 } 536 537 .tundra .dijitTooltipAbove { 538 margin-bottom: 13px; 539 } 540 .tundra .dijitTooltipAbove .dijitTooltipConnector { 541 /* the arrow piece for tooltips above an element */ 542 bottom: -13px; 543 left: 3px; 544 background:url("images/tooltipConnectorDown.png") no-repeat top left; 545 width:16px; 546 height:14px; 547 } 548 .dj_ie6 .tundra .dijitTooltipAbove .dijitTooltipConnector { 549 background-image: url("images/tooltipConnectorDown.gif"); 550 } 551 552 .tundra .dijitTooltipLeft { 553 margin-right: 13px; 554 } 555 .tundra .dijitTooltipLeft .dijitTooltipConnector { 556 /* the arrow piece for tooltips to the left of an element, bottom borders aligned */ 557 right: -12px; 558 bottom: 7px; 559 background:url("images/tooltipConnectorRight.png") no-repeat top left; 560 width:16px; 561 height:14px; 562 } 563 .dj_ie6 .tundra .dijitTooltipLeft .dijitTooltipConnector { 564 background-image: url("images/tooltipConnectorRight.gif"); 565 } 566 567 .tundra .dijitTooltipRight { 568 margin-left: 13px; 569 } 570 .tundra .dijitTooltipRight .dijitTooltipConnector { 571 /* the arrow piece for tooltips to the right of an element, bottom borders aligned */ 572 left: -13px; 573 bottom: 7px; 574 background:url("images/tooltipConnectorLeft.png") no-repeat top left; 575 width:16px; 576 height:14px; 577 } 578 .dj_ie6 .tundra .dijitTooltipRight .dijitTooltipConnector { 579 background-image: url("images/tooltipConnectorLeft.gif"); 525 580 } 526 581 -
dijit/trunk/Tooltip.js
r9058 r9126 39 39 40 40 show: function(/*String*/ innerHTML, /*DomNode*/ aroundNode){ 41 // summary: display tooltip w/specified contents underneath specified node 41 // summary: 42 // Display tooltip w/specified contents to right specified node 43 // (To left if there's no space on the right, or if LTR==right 42 44 43 45 if(this.fadeOut.status() == "playing"){ … … 47 49 } 48 50 this.containerNode.innerHTML=innerHTML; 49 dijit.util.placeOnScreenAroundElement(this.domNode, aroundNode, [0,0], 50 {'BL': 'TL', 'TL': 'BL'}); 51 52 // position the element and change CSS according to position 53 var align = this.isLeftToRight() ? {'BR': 'BL', 'BL': 'BR'} : {'BL': 'BR', 'BR': 'BL'}; 54 dijit.util.placeOnScreenAroundElement(this.domNode, aroundNode, [0,0], align); 55 // TODO: need to know which position placeOnScreenAroundElement picked 56 this.domNode.className="dijitTooltip dijitTooltip" + (this.isLeftToRight() ? "Right" : "Left"); 57 58 // show it 51 59 dojo.style(this.domNode, "opacity", 0); 52 60 this.fadeIn.play();