aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Arendt <[email protected]>2014-08-13 14:57:17 +0200
committerMarcus Arendt <[email protected]>2014-08-13 14:57:17 +0200
commit9170441003f193e8b3f3a83e5ac51305e09e0f8c (patch)
tree79f4889789a8a80013cfaa3249c24623bfaef15c
parent8a1b3d3bf220a835ff4d2f7e3c86368319a8fea5 (diff)
parent202934e054d00ea5ed5d96b52247bb200d66fa79 (diff)
downloadotp-9170441003f193e8b3f3a83e5ac51305e09e0f8c.tar.gz
otp-9170441003f193e8b3f3a83e5ac51305e09e0f8c.tar.bz2
otp-9170441003f193e8b3f3a83e5ac51305e09e0f8c.zip
Merge branch 'pascalchap/observer_issue' into maint
* pascalchap/observer_issue: correction of huge status bar
-rw-r--r--lib/observer/src/observer_wx.erl9
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/observer/src/observer_wx.erl b/lib/observer/src/observer_wx.erl
index 03ca1bf9c1..c86f5ea916 100644
--- a/lib/observer/src/observer_wx.erl
+++ b/lib/observer/src/observer_wx.erl
@@ -112,10 +112,6 @@ setup(#state{frame = Frame} = State) ->
observer_lib:create_menus(DefMenus, MenuBar, default),
wxFrame:setMenuBar(Frame, MenuBar),
- StatusBar = wxStatusBar:new(Frame),
- wxFrame:setStatusBar(Frame, StatusBar),
- wxFrame:setTitle(Frame, atom_to_list(node())),
- wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),
%% Setup panels
Panel = wxPanel:new(Frame, []),
@@ -131,6 +127,11 @@ setup(#state{frame = Frame} = State) ->
wxSizer:add(MainSizer, Notebook, [{proportion, 1}, {flag, ?wxEXPAND}]),
wxPanel:setSizer(Panel, MainSizer),
+ StatusBar = wxStatusBar:new(Frame),
+ wxFrame:setStatusBar(Frame, StatusBar),
+ wxFrame:setTitle(Frame, atom_to_list(node())),
+ wxStatusBar:setStatusText(StatusBar, atom_to_list(node())),
+
wxNotebook:connect(Notebook, command_notebook_page_changing),
wxFrame:connect(Frame, close_window, [{skip, true}]),
wxMenu:connect(Frame, command_menu_selected),