Ticket #3172: 3172.patch

File 3172.patch, 714 bytes (added by Garry Yao, 15 years ago)
  • _source/plugins/fakeobjects/plugin.js

     
    2525                                        if ( style )
    2626                                        {
    2727                                                // Get the width from the style.
    28                                                 var match = /(?:$|\s)width\s*:\s*(\d+)/.exec( style ),
     28                                                var match = /(?:^|\s)width\s*:\s*(\d+)/.exec( style ),
    2929                                                        width = match && match[1];
    3030
    3131                                                // Get the height from the style.
    32                                                 match = /(?:$|\s)height\s*:\s*(\d+)/.exec( style );
     32                                                match = /(?:^|\s)height\s*:\s*(\d+)/.exec( style );
    3333                                                var height = match && match[1];
    3434
    3535                                                if ( width )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy