From: minkee.lee Date: Tue, 3 Mar 2015 10:04:26 +0000 (+0900) Subject: Scroll-bar: Fixed wrong scroll bar position. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0ac79d19349e5206d1ef662f20a0860347936962;p=sdk%2Femulator%2Femulator-manager.git Scroll-bar: Fixed wrong scroll bar position. - In detail and modify view, fixed wrong scroll bar position when resize window. Change-Id: Ic872eb102302b013b16f92ba59b58a52a5768eb2 Signed-off-by: minkee.lee --- diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/DetailViewPage.java b/common-project/src/org/tizen/emulator/manager/ui/detail/DetailViewPage.java index 24b0c25..0f258f8 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/DetailViewPage.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/DetailViewPage.java @@ -249,6 +249,10 @@ public abstract class DetailViewPage { } itemList.setSize(size); itemList.layout(); + if (beforeItemCount != currentItemCount) { + itemList.setSize(size); + itemList.layout(); + } FormData data = new FormData(); data.height = size.y; data.width = size.x; @@ -258,6 +262,11 @@ public abstract class DetailViewPage { } scrolledList.layout(true, true); itemListBack.layout(true, false); + if (beforeItemCount != currentItemCount) { + scrolledList.layout(true, true); + itemListBack.layout(true, false); + } + } public void resize(int height) { diff --git a/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java b/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java index da34324..e2a50ab 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java +++ b/common-project/src/org/tizen/emulator/manager/ui/detail/PInfoViewPage.java @@ -227,7 +227,8 @@ public class PInfoViewPage extends DetailViewPage { topViewList = item; setStackTop(topViewList.comp); reset(); - settingItemList(); + itemList.layout(); +// settingItemList(); break; } } diff --git a/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomScrolledComposite.java b/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomScrolledComposite.java index 70359a6..7962342 100644 --- a/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomScrolledComposite.java +++ b/common-project/src/org/tizen/emulator/manager/ui/widgets/CustomScrolledComposite.java @@ -119,6 +119,7 @@ public class CustomScrolledComposite extends Composite { verticalBar.setVisible(true); verticalBar.setScrollSize(content.getBounds().height, Math.min(content.getBounds().height, getClientArea().height), true); + setOrigin(0, 0); } else { verticalBar.setVisible(false); verticalBar.setScrollPos(0);