| 473 | |
| 474 | if( CKEDITOR.env.ie7Compat ) |
| 475 | { |
| 476 | var oldMargin = null; |
| 477 | element.on( 'beforeactivate', function( evt ) |
| 478 | { |
| 479 | var container = element.getParent().getParent().getParent().getParent(); |
| 480 | oldMargin = parseInt( container.$.currentStyle.marginLeft ); |
| 481 | border = parseInt( container.getParent().$.currentStyle.borderLeftWidth ); |
| 482 | var width = container.$.offsetLeft; |
| 483 | var newMargin = Math.floor(oldMargin/2); |
| 484 | container.setStyle( 'margin-left', width - newMargin - border ); |
| 485 | } ); |
| 486 | element.on( 'blur', function( evt ) |
| 487 | { |
| 488 | var container = element.getParent().getParent().getParent().getParent(); |
| 489 | container.setStyle( 'margin-left', oldMargin + 'px' ); |
| 490 | oldMargin = null; |
| 491 | } ); |
| 492 | } |