[all][all][TFIVE-13868, improve ui layout for wearable circle manual test] 14/189814/1
authorzhongyuan <zy123.yuan@samsung.com>
Fri, 21 Sep 2018 00:47:14 +0000 (08:47 +0800)
committerzhongyuan <zy123.yuan@samsung.com>
Fri, 21 Sep 2018 00:47:14 +0000 (08:47 +0800)
Change-Id: I2759add10559eb6bb46e1e9bff3a18fd2aff0c83

common/tct-imeconfig-wrt-tests/webrunner/testrunner.js

index db3efb8..4db9c14 100755 (executable)
@@ -29,25 +29,22 @@ Authors:
 
 */
 $(function(){
- try {
-     // Checks if a device supports bluetooth API or not
-     var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape");
+  try {
+    var shape = tizen.systeminfo.getCapability("http://tizen.org/feature/screen.shape.circle");
     console.log("Shape = " + shape);
-     //alert(" Shape = " + shape);
- } catch (error) {
-    // alert("Error name: " + error.name + ", message: " + error.message);
+  } catch (error) {
     console.log("Error name: " + error.name + ", message: " + error.message);
- }
-
-    if(shape=="circle"){
-       $('body').css('max-width', '100%');
-       $('body').css('max-height', '100%');
-       $('body').css('background-color', 'white');
-       $('body').css('margin-top', '20%');
-       $('body').css('margin-bottom', '20%');
-       $('body').css('margin-left', '20%');
-       $('body').css('margin-right', '20%');
-       }
 }
+
+  if(shape){
+    $('body').css('max-width', '100%');
+    $('body').css('max-height', '100%');
+    $('body').css('background-color', 'white');
+    $('body').css('margin-top', '8%');
+    $('body').css('margin-bottom', '5%');
+    $('body').css('margin-left', '8%');
+    $('body').css('margin-right', '8%');
+  }
 });