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
bb98ea7e
Commit
bb98ea7e
authored
Apr 25, 2013
by
David Fuhrmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: use height method for controls bar
parent
7f85575c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
modules/gui/macosx/MainWindow.m
modules/gui/macosx/MainWindow.m
+8
-8
No files found.
modules/gui/macosx/MainWindow.m
View file @
bb98ea7e
...
@@ -184,7 +184,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -184,7 +184,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
o_podcast_unsubscribe_cancel_btn
setTitle
:
_NS
(
"Cancel"
)];
[
o_podcast_unsubscribe_cancel_btn
setTitle
:
_NS
(
"Cancel"
)];
/* interface builder action */
/* interface builder action */
float
f_threshold_height
=
f_min_video_height
+
[
[
o_controls_bar
bottomBarView
]
frame
].
size
.
height
;
float
f_threshold_height
=
f_min_video_height
+
[
o_controls_bar
height
]
;
if
(
b_dark_interface
)
if
(
b_dark_interface
)
f_threshold_height
+=
[
o_titlebar_view
frame
].
size
.
height
;
f_threshold_height
+=
[
o_titlebar_view
frame
].
size
.
height
;
if
([[
self
contentView
]
frame
].
size
.
height
<
f_threshold_height
)
if
([[
self
contentView
]
frame
].
size
.
height
<
f_threshold_height
)
...
@@ -587,11 +587,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -587,11 +587,11 @@ static VLCMainWindow *_o_sharedInstance = nil;
[
self
setFrame
:
winrect
display
:
YES
animate
:
YES
];
[
self
setFrame
:
winrect
display
:
YES
animate
:
YES
];
[
self
performSelector
:
@selector
(
hideDropZone
)
withObject
:
nil
afterDelay
:
0
.
1
];
[
self
performSelector
:
@selector
(
hideDropZone
)
withObject
:
nil
afterDelay
:
0
.
1
];
if
(
b_dark_interface
)
{
if
(
b_dark_interface
)
{
[
self
setContentMinSize
:
NSMakeSize
(
604
.,
[
[
o_controls_bar
bottomBarView
]
frame
].
size
.
height
+
[
o_titlebar_view
frame
].
size
.
height
)];
[
self
setContentMinSize
:
NSMakeSize
(
604
.,
[
o_controls_bar
height
]
+
[
o_titlebar_view
frame
].
size
.
height
)];
[
self
setContentMaxSize
:
NSMakeSize
(
FLT_MAX
,
[
[
o_controls_bar
bottomBarView
]
frame
].
size
.
height
+
[
o_titlebar_view
frame
].
size
.
height
)];
[
self
setContentMaxSize
:
NSMakeSize
(
FLT_MAX
,
[
o_controls_bar
height
]
+
[
o_titlebar_view
frame
].
size
.
height
)];
}
else
{
}
else
{
[
self
setContentMinSize
:
NSMakeSize
(
604
.,
[
[
o_controls_bar
bottomBarView
]
frame
].
size
.
height
)];
[
self
setContentMinSize
:
NSMakeSize
(
604
.,
[
o_controls_bar
height
]
)];
[
self
setContentMaxSize
:
NSMakeSize
(
FLT_MAX
,
[
[
o_controls_bar
bottomBarView
]
frame
].
size
.
height
)];
[
self
setContentMaxSize
:
NSMakeSize
(
FLT_MAX
,
[
o_controls_bar
height
]
)];
}
}
b_splitview_removed
=
YES
;
b_splitview_removed
=
YES
;
...
@@ -1284,7 +1284,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1284,7 +1284,7 @@ static VLCMainWindow *_o_sharedInstance = nil;
NSRect
videoViewRect
=
[[
self
contentView
]
bounds
];
NSRect
videoViewRect
=
[[
self
contentView
]
bounds
];
if
(
b_dark_interface
)
if
(
b_dark_interface
)
videoViewRect
.
size
.
height
-=
[
o_titlebar_view
frame
].
size
.
height
;
videoViewRect
.
size
.
height
-=
[
o_titlebar_view
frame
].
size
.
height
;
CGFloat
f_bottomBarHeight
=
[[
[
self
controlsBar
]
bottomBarView
]
frame
].
size
.
height
;
CGFloat
f_bottomBarHeight
=
[[
self
controlsBar
]
height
]
;
videoViewRect
.
size
.
height
-=
f_bottomBarHeight
;
videoViewRect
.
size
.
height
-=
f_bottomBarHeight
;
videoViewRect
.
origin
.
y
=
f_bottomBarHeight
;
videoViewRect
.
origin
.
y
=
f_bottomBarHeight
;
[
o_video_view
setFrame
:
videoViewRect
];
[
o_video_view
setFrame
:
videoViewRect
];
...
@@ -1294,9 +1294,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
...
@@ -1294,9 +1294,9 @@ static VLCMainWindow *_o_sharedInstance = nil;
[[
self
contentView
]
addSubview
:
o_color_backdrop
positioned
:
NSWindowBelow
relativeTo
:
o_video_view
];
[[
self
contentView
]
addSubview
:
o_color_backdrop
positioned
:
NSWindowBelow
relativeTo
:
o_video_view
];
[
o_color_backdrop
setAutoresizingMask
:
NSViewHeightSizable
|
NSViewWidthSizable
];
[
o_color_backdrop
setAutoresizingMask
:
NSViewHeightSizable
|
NSViewWidthSizable
];
[
self
setContentMinSize
:
NSMakeSize
(
363
.,
f_min_video_height
+
[[
[
self
controlsBar
]
bottomBarView
]
frame
].
size
.
height
+
[
o_titlebar_view
frame
].
size
.
height
)];
[
self
setContentMinSize
:
NSMakeSize
(
363
.,
f_min_video_height
+
[[
self
controlsBar
]
height
]
+
[
o_titlebar_view
frame
].
size
.
height
)];
}
else
{
}
else
{
[
self
setContentMinSize
:
NSMakeSize
(
363
.,
f_min_video_height
+
[[
[
self
controlsBar
]
bottomBarView
]
frame
].
size
.
height
)];
[
self
setContentMinSize
:
NSMakeSize
(
363
.,
f_min_video_height
+
[[
self
controlsBar
]
height
]
)];
}
}
}
}
...
...
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