aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_tv_table.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-11-11 15:00:11 +0100
committerDan Gudmundsson <[email protected]>2011-11-17 14:51:28 +0100
commitb65b0c4bf4896021cbd327a4bc1acd426645a5f3 (patch)
tree5a5449038c82f1a57d688fb8e6cfa51aebb91b66 /lib/observer/src/observer_tv_table.erl
parent3caa688c5522b8f0f039b9375cf6377b1bd88f0e (diff)
downloadotp-b65b0c4bf4896021cbd327a4bc1acd426645a5f3.tar.gz
otp-b65b0c4bf4896021cbd327a4bc1acd426645a5f3.tar.bz2
otp-b65b0c4bf4896021cbd327a4bc1acd426645a5f3.zip
[observer] Rework tracing part of the gui
No tracing is implemented yet.
Diffstat (limited to 'lib/observer/src/observer_tv_table.erl')
-rw-r--r--lib/observer/src/observer_tv_table.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/observer/src/observer_tv_table.erl b/lib/observer/src/observer_tv_table.erl
index f744623960..7b5cdb44b9 100644
--- a/lib/observer/src/observer_tv_table.erl
+++ b/lib/observer/src/observer_tv_table.erl
@@ -264,7 +264,7 @@ handle_event(#wx{event=#wxSize{size={W,_}}}, State=#state{grid=Grid}) ->
Cols = wxListCtrl:getColumnCount(Grid),
Last = lists:foldl(fun(I, Last) ->
Last - wxListCtrl:getColumnWidth(Grid, I)
- end, W-2, lists:seq(0, Cols - 2)),
+ end, W-?LCTRL_WDECR, lists:seq(0, Cols - 2)),
Size = max(?DEFAULT_COL_WIDTH, Last),
wxListCtrl:setColumnWidth(Grid, Cols-1, Size)
end),