Ticket #8015: 8015.patch

File 8015.patch, 3.3 KB (added by Wiktor Walc, 13 years ago)
  • _source/plugins/docprops/dialogs/docprops.js

     
    545545                                                                                type : 'text',
    546546                                                                                id : 'marginTop',
    547547                                                                                label : lang.marginTop,
    548                                                                                 style : 'width: 80px; text-align: center; margin: 0px auto',
     548                                                                                style : 'width: 80px; text-align: center',
     549                                                                                align : 'center',
    549550                                                                                inputStyle : 'text-align: center',
    550551                                                                                setup : function( doc, html, head, body )
    551552                                                                                {
    552553                                                                                        this.setValue( body.getStyle( 'margin-top' ) || body.getAttribute( 'margintop' ) || '' );
    553554                                                                                },
    554                                                                                 commit : commitMargin( 'top' ),
    555                                                                                 onLoad : function()
    556                                                                                 {
    557                                                                                         this.getElement().getParent().setStyle( 'text-align', 'center' );
    558                                                                                 }
     555                                                                                commit : commitMargin( 'top' )
    559556                                                                        },
    560557                                                                        {
    561558                                                                                type : 'hbox',
     
    564561                                                                                                type : 'text',
    565562                                                                                                id : 'marginLeft',
    566563                                                                                                label : lang.marginLeft,
    567                                                                                                 style : 'width: 80px; text-align: center; margin: 0px auto',
     564                                                                                                style : 'width: 80px; text-align: center',
     565                                                                                                align : 'center',
    568566                                                                                                inputStyle : 'text-align: center',
    569567                                                                                                setup : function( doc, html, head, body )
    570568                                                                                                {
    571569                                                                                                        this.setValue( body.getStyle( 'margin-left' ) || body.getAttribute( 'marginleft' ) || '' );
    572570                                                                                                },
    573                                                                                                 commit : commitMargin( 'left' ),
    574                                                                                                 onLoad : function()
    575                                                                                                 {
    576                                                                                                         this.getElement().getParent().setStyle( 'text-align', 'center' );
    577                                                                                                 }
     571                                                                                                commit : commitMargin( 'left' )
    578572                                                                                        },
    579573                                                                                        {
    580574                                                                                                type : 'text',
    581575                                                                                                id : 'marginRight',
    582576                                                                                                label : lang.marginRight,
    583                                                                                                 style : 'width: 80px; text-align: center; margin: 0px auto',
     577                                                                                                style : 'width: 80px; text-align: center',
     578                                                                                                align : 'center',
    584579                                                                                                inputStyle : 'text-align: center',
    585580                                                                                                setup : function( doc, html, head, body )
    586581                                                                                                {
    587582                                                                                                        this.setValue( body.getStyle( 'margin-right' ) || body.getAttribute( 'marginright' ) || '' );
    588583                                                                                                },
    589                                                                                                 commit : commitMargin( 'right' ),
    590                                                                                                 onLoad : function()
    591                                                                                                 {
    592                                                                                                         this.getElement().getParent().setStyle( 'text-align', 'center' );
     584                                                                                                commit : commitMargin( 'right' )
    593585                                                                                        }
    594                                                                                         }
    595586                                                                                ]
    596587                                                                        },
    597588                                                                        {
    598589                                                                                type : 'text',
    599590                                                                                id : 'marginBottom',
    600591                                                                                label : lang.marginBottom,
    601                                                                                 style : 'width: 80px; text-align: center; margin: 0px auto',
     592                                                                                style : 'width: 80px; text-align: center',
     593                                                                                align : 'center',
    602594                                                                                inputStyle : 'text-align: center',
    603595                                                                                setup : function( doc, html, head, body )
    604596                                                                                {
    605597                                                                                        this.setValue( body.getStyle( 'margin-bottom' ) || body.getAttribute( 'marginbottom' ) || '' );
    606598                                                                                },
    607                                                                                 commit : commitMargin( 'bottom' ),
    608                                                                                 onLoad : function()
    609                                                                                 {
    610                                                                                         this.getElement().getParent().setStyle( 'text-align', 'center' );
     599                                                                                commit : commitMargin( 'bottom' )
    611600                                                                        }
    612                                                                         }
    613601                                                                ]
    614602                                                        }
    615603                                                ]
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy