NSCREEN : start up view port bug fix 72/21172/1
authorjooyoul_lee <jy.exe.lee@samsung.com>
Fri, 16 May 2014 01:52:18 +0000 (10:52 +0900)
committerjooyoul_lee <jy.exe.lee@samsung.com>
Fri, 16 May 2014 01:52:18 +0000 (10:52 +0900)
view port size problem fixed

Change-Id: Ie2399c7c04af8b554688a00a347242939a33ba72
Signed-off-by: jooyoul_lee <jy.exe.lee@samsung.com>
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/editor/PageDesignerToolbar.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/NScreenItem.java
org.tizen.webuibuilder/src/org/tizen/webuibuilder/ui/views/nscreen/command/NScreenLinkCutCommand.java

index 2e3b465..085bb84 100644 (file)
@@ -198,16 +198,13 @@ public class PageDesignerToolbar implements ISelectionListener {
         String profile = appManager.getPlatform();
         if (profile.contains("mobile")) {
             device = devices.get(1);
-
         } else if (profile.contains("wearable")) {
             device = devices.get(0);
         }
-        currentScreen =
-                new ScreenSize(device.getDeviceWidth(), device.getDeviceHeight(),
-                               device.getDisplayName());
         nscreen = new NScreenHistory();
         nscreen.setLastResolution(device.getDisplayName());
         nscreen.setScale(1f);
+        currentScreen = resolution.getScreenSize(device.getDisplayName());
 
         screenSizeText.setText(currentScreen.getScreenSize());
     }
index 354e29c..cfca1c3 100644 (file)
@@ -324,18 +324,18 @@ public class NScreenItem extends Composite {
     }
 
     public void LinkCutAction() {
-        Command command = new NScreenLinkCutCommand(this);
-        parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command);
+//        Command command = new NScreenLinkCutCommand(this);
+//        parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command);
     }
 
     public void LinkUpAction() {
-        Command command = new NScreenLinkUpCommand(this);
-        parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command);
+//        Command command = new NScreenLinkUpCommand(this);
+//        parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command);
     }
 
     public void LinkDownAction() {
-        Command command = new NScreenLinkDownCommand(this);
-        parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command);
+//        Command command = new NScreenLinkDownCommand(this);
+//        parent.getNScreenPageModel().getPageDesigner().getCommandStack().execute(command);
     }
 
     public void redrawItem() {