Ticket #8015: 8015.patch
File 8015.patch, 3.3 KB (added by , 12 years ago) |
---|
-
_source/plugins/docprops/dialogs/docprops.js
545 545 type : 'text', 546 546 id : 'marginTop', 547 547 label : lang.marginTop, 548 style : 'width: 80px; text-align: center; margin: 0px auto', 548 style : 'width: 80px; text-align: center', 549 align : 'center', 549 550 inputStyle : 'text-align: center', 550 551 setup : function( doc, html, head, body ) 551 552 { 552 553 this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' ); 553 554 }, 554 commit : commitMargin( 'top' ), 555 onLoad : function() 556 { 557 this.getElement().getParent().setStyle( 'text-align', 'center' ); 558 } 555 commit : commitMargin( 'top' ) 559 556 }, 560 557 { 561 558 type : 'hbox', … … 564 561 type : 'text', 565 562 id : 'marginLeft', 566 563 label : lang.marginLeft, 567 style : 'width: 80px; text-align: center; margin: 0px auto', 564 style : 'width: 80px; text-align: center', 565 align : 'center', 568 566 inputStyle : 'text-align: center', 569 567 setup : function( doc, html, head, body ) 570 568 { 571 569 this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' ); 572 570 }, 573 commit : commitMargin( 'left' ), 574 onLoad : function() 575 { 576 this.getElement().getParent().setStyle( 'text-align', 'center' ); 577 } 571 commit : commitMargin( 'left' ) 578 572 }, 579 573 { 580 574 type : 'text', 581 575 id : 'marginRight', 582 576 label : lang.marginRight, 583 style : 'width: 80px; text-align: center; margin: 0px auto', 577 style : 'width: 80px; text-align: center', 578 align : 'center', 584 579 inputStyle : 'text-align: center', 585 580 setup : function( doc, html, head, body ) 586 581 { 587 582 this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' ); 588 583 }, 589 commit : commitMargin( 'right' ), 590 onLoad : function() 591 { 592 this.getElement().getParent().setStyle( 'text-align', 'center' ); 584 commit : commitMargin( 'right' ) 593 585 } 594 }595 586 ] 596 587 }, 597 588 { 598 589 type : 'text', 599 590 id : 'marginBottom', 600 591 label : lang.marginBottom, 601 style : 'width: 80px; text-align: center; margin: 0px auto', 592 style : 'width: 80px; text-align: center', 593 align : 'center', 602 594 inputStyle : 'text-align: center', 603 595 setup : function( doc, html, head, body ) 604 596 { 605 597 this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' ); 606 598 }, 607 commit : commitMargin( 'bottom' ), 608 onLoad : function() 609 { 610 this.getElement().getParent().setStyle( 'text-align', 'center' ); 599 commit : commitMargin( 'bottom' ) 611 600 } 612 }613 601 ] 614 602 } 615 603 ]