Changeset 24768
- Timestamp:
- 07/22/2013 09:09:49 PM (12 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/css/wp-admin-rtl.css
r24761 r24768 1031 1031 .revisions-tooltip { 1032 1032 margin-left: 0; 1033 margin-right: - 70px;1033 margin-right: -69px; 1034 1034 } 1035 1035 … … 1041 1041 .ie8 .revisions-tooltip { 1042 1042 margin-right: -75px; 1043 } 1044 1045 .ie8 .revisions-tooltip.flipped { 1046 margin-left: -63px; 1043 1047 } 1044 1048 … … 1063 1067 right: auto; 1064 1068 left: 20px; 1069 } 1070 1071 .ie8 .revisions-tooltip-arrow > span { 1072 right: 21px; 1065 1073 } 1066 1074 -
trunk/wp-admin/css/wp-admin.css
r24761 r24768 3540 3540 height: 0.8em; 3541 3541 top: 7px; 3542 width: 100%; 3543 padding: 0 15%; 3542 width: 70%; 3544 3543 -moz-box-sizing: border-box; 3545 3544 -webkit-box-sizing: border-box; … … 3548 3547 3549 3548 .revisions-tickmarks > div { 3550 position: relative;3549 position: absolute; 3551 3550 height: 100%; 3552 float: left;3553 3551 border-style: solid; 3554 3552 border-width: 0 1px 0 0; … … 3558 3556 } 3559 3557 3560 .revisions-tickmarks > div: last-child {3558 .revisions-tickmarks > div:first-child { 3561 3559 border-width: 0; 3562 3560 } … … 3765 3763 bottom: 105px; 3766 3764 margin-right: 0; 3767 margin-left: - 70px;3765 margin-left: -69px; 3768 3766 z-index: 1; 3769 3767 max-width: 350px; … … 3825 3823 3826 3824 .ie8 .revisions-tooltip-arrow > span { 3827 left: 1 4px;3825 left: 15px; 3828 3826 top: -25px; 3829 3827 -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(SizingMethod='auto expand', M11=0.7071067811865476, M12=-0.7071067811865475, M21=0.7071067811865475, M22=0.7071067811865476)"; 3828 } 3829 3830 .ie8 .revisions-tooltip.flipped .revisions-tooltip-arrow > span { 3831 right: 25px; 3830 3832 } 3831 3833 -
trunk/wp-admin/js/revisions.js
r24761 r24768 616 616 revisions.view.Tickmarks = wp.Backbone.View.extend({ 617 617 className: 'revisions-tickmarks', 618 direction: isRtl ? 'right' : 'left', 618 619 619 620 initialize: function() { … … 622 623 623 624 reportTickPosition: function( model, revision ) { 624 var elWidth, offset, tick, index = this.model.revisions.indexOf( revision ); 625 var offset, thisOffset, parentOffset, tick, index = this.model.revisions.indexOf( revision ); 626 thisOffset = this.$el.allOffsets(); 627 parentOffset = this.$el.parent().allOffsets(); 625 628 if ( index === this.model.revisions.length - 1 ) { 626 629 // Last one 627 tick = this.$('div:nth-of-type(' + index + ')'); 628 offset = tick.allPositions(); 629 elWidth = tick.outerWidth(); 630 _.extend( offset, { 631 rightPlusWidth: offset.right, 632 leftPlusWidth: offset.left 633 }); 630 offset = { 631 rightPlusWidth: thisOffset.left - parentOffset.left + 1, 632 leftPlusWidth: thisOffset.right - parentOffset.right + 1 633 }; 634 634 } else { 635 635 // Normal tick … … 637 637 offset = tick.allPositions(); 638 638 _.extend( offset, { 639 leftPlusWidth: offset.left + tick.outerWidth() + 1, 640 rightPlusWidth: offset.right + tick.outerWidth() + 1 639 left: offset.left + thisOffset.left - parentOffset.left, 640 right: offset.right + thisOffset.right - parentOffset.right 641 }); 642 _.extend( offset, { 643 leftPlusWidth: offset.left + tick.outerWidth(), 644 rightPlusWidth: offset.right + tick.outerWidth() 641 645 }); 642 646 } … … 649 653 tickWidth = 1 / tickCount; 650 654 651 _(tickCount).times( function(){ this.$el.append( '<div></div>' ); }, this ); 652 653 this.$('div').css( 'width', ( 100 * tickWidth ) + '%' ); 655 _(tickCount).times( function( index ){ 656 this.$el.append( '<div style="' + this.direction + ': ' + ( 100 * tickWidth * index ) + '%"></div>' ); }, this ); 654 657 } 655 658 });
Note: See TracChangeset
for help on using the changeset viewer.