aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_app_wx.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2012-04-20 17:01:31 +0200
committerDan Gudmundsson <[email protected]>2012-04-27 12:47:48 +0200
commit515e0ad4040bc50a637bb31fc33c825d41b4f0ac (patch)
tree296eca420146ede211a919526cbd719b4780d8d1 /lib/observer/src/observer_app_wx.erl
parent9ac8b28e0ce7708acc4227eab9a5b869bbb90d4f (diff)
downloadotp-515e0ad4040bc50a637bb31fc33c825d41b4f0ac.tar.gz
otp-515e0ad4040bc50a637bb31fc33c825d41b4f0ac.tar.bz2
otp-515e0ad4040bc50a637bb31fc33c825d41b4f0ac.zip
[observer] Fix scrollbars in app-viewer
Diffstat (limited to 'lib/observer/src/observer_app_wx.erl')
-rw-r--r--lib/observer/src/observer_app_wx.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/observer/src/observer_app_wx.erl b/lib/observer/src/observer_app_wx.erl
index a5ad2f6289..4efcd44747 100644
--- a/lib/observer/src/observer_app_wx.erl
+++ b/lib/observer/src/observer_app_wx.erl
@@ -147,11 +147,11 @@ setup_scrollbar({CW, CH}, AppWin, #app{dim={W0,H0}}) ->
H = max(H0,CH),
PPC = 20,
if W0 =< CW, H0 =< CH ->
- wxScrolledWindow:setScrollbars(AppWin, W, H, 1, 1);
+ wxScrolledWindow:setScrollbars(AppWin, W, H, 0, 0);
H0 =< CH ->
- wxScrolledWindow:setScrollbars(AppWin, PPC, H, W div PPC+1, 1);
+ wxScrolledWindow:setScrollbars(AppWin, PPC, H, W div PPC+1, 0);
W0 =< CW ->
- wxScrolledWindow:setScrollbars(AppWin, W, PPC, 1, H div PPC+1);
+ wxScrolledWindow:setScrollbars(AppWin, W, PPC, 0, H div PPC+1);
true ->
wxScrolledWindow:setScrollbars(AppWin, PPC, PPC, W div PPC+1, H div PPC+1)
end;