Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
9b67dffa
Commit
9b67dffa
authored
Jan 24, 2014
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: advanced prefs: fix table view width autosizing
parent
4049e233
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
modules/gui/macosx/prefs_widgets.h
modules/gui/macosx/prefs_widgets.h
+1
-1
modules/gui/macosx/prefs_widgets.m
modules/gui/macosx/prefs_widgets.m
+4
-4
No files found.
modules/gui/macosx/prefs_widgets.h
View file @
9b67dffa
...
...
@@ -199,7 +199,7 @@ static NSMenu *o_keys_menu = nil;
@interface
ModuleListConfigControl
:
VLCConfigControl
<
NSTableViewDataSource
>
{
NSTextField
*
o_textfield
;
NS
ScrollView
*
o_scroll
view
;
NS
TableView
*
o_table
view
;
NSMutableArray
*
o_modulearray
;
}
...
...
modules/gui/macosx/prefs_widgets.m
View file @
9b67dffa
...
...
@@ -2054,11 +2054,10 @@ else\
}
/* FOR i_module_index */
module_list_free
(
p_list
);
// First, initialize and draw the table view to get its height
NSRect
s_rc
=
NSMakeRect
(
12
,
10
,
mainFrame
.
size
.
width
-
LEFTMARGIN
-
RIGHTMARGIN
-
12
,
50
);
// width is increased a little to fix horizontal auto-sizing
NSRect
s_rc
=
NSMakeRect
(
12
,
10
,
mainFrame
.
size
.
width
-
LEFTMARGIN
-
RIGHTMARGIN
+
18
,
50
);
// height is automatically increased as needed
NSTableView
*
o_tableview
;
o_tableview
=
[[
NSTableView
alloc
]
initWithFrame
:
s_rc
];
[
o_tableview
setUsesAlternatingRowBackgroundColors
:
YES
];
[
o_tableview
setHeaderView
:
nil
];
...
...
@@ -2095,6 +2094,7 @@ else\
NSLeftMouseDraggedMask
];
[
o_tableview
reloadData
];
[
o_tableview
setAutoresizingMask
:
NSViewWidthSizable
];
CGFloat
tableview_height
=
[
o_tableview
frame
].
size
.
height
;
...
...
@@ -2155,7 +2155,7 @@ else\
-
(
void
)
dealloc
{
[
o_
scroll
view
release
];
[
o_
table
view
release
];
[
super
dealloc
];
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment