Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
bd0d4a48
Commit
bd0d4a48
authored
Jun 04, 2013
by
Felix Paul Kühne
Browse files
Status Label: resize correctly when content is changed
parent
34a9e444
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCStatusLabel.m
View file @
bd0d4a48
...
...
@@ -13,6 +13,15 @@
-
(
void
)
showStatusMessage
:(
NSString
*
)
message
{
self
.
text
=
message
;
/* layout and horizontal center in super view */
[
self
sizeToFit
];
CGRect
selfFrame
=
self
.
frame
;
CGRect
parentFrame
=
[
self
window
].
bounds
;
selfFrame
.
size
.
width
+=
15
.;
// take extra width into account for our custom drawing
selfFrame
.
origin
.
x
=
(
parentFrame
.
size
.
width
-
selfFrame
.
size
.
width
)
/
2
.;
[
self
setFrame
:
selfFrame
];
[
self
setNeedsDisplay
];
[
self
_toggleVisibility
:
NO
];
...
...
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