Naviframe : calculate margin size in h1 area
authorJinhyuk Jun <jinhyuk.jun@samsung.com>
Thu, 7 Feb 2013 06:32:48 +0000 (15:32 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Tue, 19 Feb 2013 07:58:43 +0000 (16:58 +0900)
h1 text ellipsis calculate wrong value 8px margin size

Change-Id: Ieba96a055d37d314e39493dcc0ea5b06e4c90ac1

src/widgets/pagelayout/js/jquery.mobile.tizen.pagelayout.js

index 1d3bba2..57ba8d2 100644 (file)
                                headerSrcNum = $elHeader.children("img").length;
 
                        if ( !$elPage.is( ".ui-dialog" ) ) {
-                               $elHeader.find( "h1" ).css( "width", window.innerWidth - $elHeader.children( "a" ).width() * headerBtnNum - $elHeader.children( "a" ).width() / 4 - $elHeader.children( "img" ).width() * headerSrcNum * 4 );
+                               $elHeader.find( "h1" ).css( "width", window.innerWidth - parseInt( $elHeader.find( "h1" ).css( "margin-left" ), 10 ) * 2 - $elHeader.children( "a" ).width() * headerBtnNum - $elHeader.children( "a" ).width() / 4 - $elHeader.children( "img" ).width() * headerSrcNum * 4 );
                        }
                        /* add half width for default space between text and button, and img tag area is too narrow, so multiply three for img width*/
                },