aboutsummaryrefslogtreecommitdiffstats
path: root/lib/et/src/et_wx_contents_viewer.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2011-04-26 11:01:38 +0200
committerDan Gudmundsson <[email protected]>2011-05-11 16:01:46 +0200
commitd3d2a66af3b7a4a29d3f5ba477a81c7e6f147653 (patch)
tree63b6304bf9df591beee2a456be1efaa3f0c77008 /lib/et/src/et_wx_contents_viewer.erl
parent116deb98aa1309039d06530de3351feec1163c3f (diff)
downloadotp-d3d2a66af3b7a4a29d3f5ba477a81c7e6f147653.tar.gz
otp-d3d2a66af3b7a4a29d3f5ba477a81c7e6f147653.tar.bz2
otp-d3d2a66af3b7a4a29d3f5ba477a81c7e6f147653.zip
Windows fixes, content_viewer window size was wrong and removed focus stealing
Diffstat (limited to 'lib/et/src/et_wx_contents_viewer.erl')
-rw-r--r--lib/et/src/et_wx_contents_viewer.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/et/src/et_wx_contents_viewer.erl b/lib/et/src/et_wx_contents_viewer.erl
index aada184a76..86f46f25d0 100644
--- a/lib/et/src/et_wx_contents_viewer.erl
+++ b/lib/et/src/et_wx_contents_viewer.erl
@@ -464,7 +464,8 @@ create_window(S) ->
wxFrame:setMenuBar(Frame,Bar),
create_file_menu(Bar),
Editor = wxTextCtrl:new(Panel, ?wxID_ANY, [{style, 0
- bor ?wxDEFAULT
+ bor ?wxDEFAULT
+ bor ?wxTE_RICH2 %% Needed on Windows
bor ?wxTE_MULTILINE
bor ?wxTE_READONLY
bor ?wxTE_DONTWRAP}]),
@@ -483,6 +484,7 @@ create_window(S) ->
wxFrame:connect(Frame, close_window, [{skip,true}]),
wxFrame:setFocus(Frame),
wxPanel:setSizer(Panel, Sizer),
+ wxSizer:fit(Sizer, Panel),
wxFrame:show(Frame),
S2#state{menu_data = HideData++SearchData++FilterData, editor = Editor, frame = Frame}.