aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_lib.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-05-09 10:17:45 +0200
committerDan Gudmundsson <[email protected]>2016-05-09 10:17:45 +0200
commitb3a7924f657828585bdc517e4c8a03785478e584 (patch)
tree35ebc7d1799218a94582275fc486bd45d6f90cc9 /lib/observer/src/observer_lib.erl
parenta658b1a5ac41b3f5cb95dae263e908ebfbfddf6e (diff)
parentf2e56680871c68dd7086c280ae1c78b7da5a6167 (diff)
downloadotp-b3a7924f657828585bdc517e4c8a03785478e584.tar.gz
otp-b3a7924f657828585bdc517e4c8a03785478e584.tar.bz2
otp-b3a7924f657828585bdc517e4c8a03785478e584.zip
Merge branch 'dgud/observer/fixbugs'
* dgud/observer/fixbugs: Fix left column text width observer: Remove ignored alignment flag observer: Fix timing issue Observer: do not create PaintDC outside of paint callbacks observer: Reduce flicker in table info on windows
Diffstat (limited to 'lib/observer/src/observer_lib.erl')
-rw-r--r--lib/observer/src/observer_lib.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/observer/src/observer_lib.erl b/lib/observer/src/observer_lib.erl
index 5d5ac37ce9..c6a1c73c83 100644
--- a/lib/observer/src/observer_lib.erl
+++ b/lib/observer/src/observer_lib.erl
@@ -432,12 +432,12 @@ create_box(Panel, {scroll_boxes,Data}) ->
{OuterBox, Boxes};
create_box(Parent, Data) ->
- {Title, Align, Info} = get_box_info(Data),
+ {Title, _Align, Info} = get_box_info(Data),
Top = wxStaticBoxSizer:new(?wxVERTICAL, Parent, [{label, Title}]),
Panel = wxPanel:new(Parent),
Box = wxBoxSizer:new(?wxVERTICAL),
- LeftSize = get_max_width(Panel,Info),
- RightProportion = [{flag, Align bor ?wxEXPAND}],
+ LeftSize = 30 + get_max_width(Panel,Info),
+ RightProportion = [{flag, ?wxEXPAND}],
AddRow = fun({Desc0, Value0}) ->
Desc = Desc0++":",
Line = wxBoxSizer:new(?wxHORIZONTAL),